mirror of
https://github.com/wassname/talk.git
synced 2026-08-12 12:30:39 +08:00
Live update modqueue on new comments
This commit is contained in:
@@ -182,11 +182,11 @@ const createComment = async (context, {tags = [], body, asset_id, parent_id = nu
|
||||
Comments.parentCountByAssetID.incr(asset_id);
|
||||
}
|
||||
Comments.countByAssetID.incr(asset_id);
|
||||
|
||||
// Publish the newly added comment via the subscription.
|
||||
pubsub.publish('commentAdded', comment);
|
||||
}
|
||||
|
||||
// Publish the newly added comment via the subscription.
|
||||
pubsub.publish('commentAdded', comment);
|
||||
|
||||
return comment;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user