From 9dc0693530e62efcc10c108c0edb49407b7dd2b6 Mon Sep 17 00:00:00 2001 From: Belen Curcio Date: Wed, 17 May 2017 09:43:04 -0300 Subject: [PATCH] Linting --- graph/mutators/comment.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/graph/mutators/comment.js b/graph/mutators/comment.js index 4755aa4ac..615d9cd43 100644 --- a/graph/mutators/comment.js +++ b/graph/mutators/comment.js @@ -19,12 +19,12 @@ const Wordlist = require('../../services/wordlist'); const createComment = ({user, loaders: {Comments}, pubsub}, {tags = [], body, asset_id, parent_id = null}, status = 'NONE') => { // Handle Tags - if (!!tags.length) { + if (tags.length) { tags = tags.map(tag => ({ tag: { name: tag } - })) + })); } // Add the staff tag for comments created as a staff member.