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({