summaryrefslogtreecommitdiff
path: root/src/services
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2019-04-13 18:23:32 +0900
committersyuilo <syuilotan@yahoo.co.jp>2019-04-13 18:23:32 +0900
commit53d46d1cbe9ab79b08c9020f3dc6d290c226e9aa (patch)
tree843d3c58d875a07cc54496662f25af49e1220594 /src/services
parentRefactor (diff)
downloadsharkey-53d46d1cbe9ab79b08c9020f3dc6d290c226e9aa.tar.gz
sharkey-53d46d1cbe9ab79b08c9020f3dc6d290c226e9aa.tar.bz2
sharkey-53d46d1cbe9ab79b08c9020f3dc6d290c226e9aa.zip
Fix error
Diffstat (limited to 'src/services')
-rw-r--r--src/services/update-hashtag.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/services/update-hashtag.ts b/src/services/update-hashtag.ts
index 6f6d5c4691..8dbbf04cbb 100644
--- a/src/services/update-hashtag.ts
+++ b/src/services/update-hashtag.ts
@@ -63,7 +63,9 @@ export async function updateHashtag(user: User, tag: string, isUserAttached = fa
}
}
- q.execute();
+ if (Object.keys(set).length > 0) {
+ q.execute();
+ }
} else {
if (isUserAttached) {
Hashtags.save({