editComment returns status of comment after edit. UI shows appropriate notifications if PREMOD or REJECTED

This commit is contained in:
Benjamin Goering
2017-05-03 18:05:06 -07:00
parent 3ac8f09619
commit 0ba973fb44
6 changed files with 28 additions and 4 deletions
+1 -1
View File
@@ -6,7 +6,7 @@ const RootMutation = {
return wrapResponse('comment')(Comment.create(comment));
},
editComment(_, args, {mutators: {Comment}}) {
return wrapResponse(null)(Comment.editComment(args));
return wrapResponse('comment')(Comment.editComment(args));
},
createLike(_, {like: {item_id, item_type}}, {mutators: {Action}}) {
return wrapResponse('like')(Action.create({item_id, item_type, action_type: 'LIKE'}));