mirror of
https://github.com/wassname/talk.git
synced 2026-08-01 13:00:55 +08:00
Fixed tests
This commit is contained in:
@@ -45,8 +45,11 @@ const createComment = ({user, loaders: {Comments}, pubsub}, {body, asset_id, par
|
||||
}
|
||||
Comments.countByAssetID.incr(asset_id);
|
||||
|
||||
// Publish the newly added comment via the subscription.
|
||||
pubsub.publish('commentAdded', comment);
|
||||
if (pubsub) {
|
||||
|
||||
// Publish the newly added comment via the subscription.
|
||||
pubsub.publish('commentAdded', comment);
|
||||
}
|
||||
}
|
||||
|
||||
return comment;
|
||||
|
||||
Reference in New Issue
Block a user