Fix error

This commit is contained in:
syuilo 2019-04-13 18:23:32 +09:00
parent 275e1c8de9
commit 53d46d1cbe
No known key found for this signature in database
GPG Key ID: BDC4C49D06AB9D69
1 changed files with 3 additions and 1 deletions

View File

@ -63,7 +63,9 @@ export async function updateHashtag(user: User, tag: string, isUserAttached = fa
} }
} }
if (Object.keys(set).length > 0) {
q.execute(); q.execute();
}
} else { } else {
if (isUserAttached) { if (isUserAttached) {
Hashtags.save({ Hashtags.save({