Remove subscription code

This commit is contained in:
Chi Vinh Le
2017-08-02 18:14:52 +07:00
parent 94901d40f3
commit b6b7570bcc
8 changed files with 4 additions and 51 deletions
-4
View File
@@ -7,10 +7,6 @@ const {ADD_COMMENT_TAG, REMOVE_COMMENT_TAG} = require('../../perms/constants');
*/
const modify = async ({user, loaders: {Tags}, pubsub}, operation, {name, id, item_type, asset_id}) => {
if (operation.name === 'add') {
pubsub.publish('commentFeatured', {});
}
// Get the global list of tags from the dataloader.
const tags = await Tags.getAll.load({id, item_type, asset_id});