Fixed syntax error

This commit is contained in:
Wyatt Johnson
2017-03-31 09:41:18 -06:00
parent 004e8d5fe9
commit 1da5c570bf
+1 -1
View File
@@ -6,7 +6,7 @@ module.exports = {
resolvers: {
RootMutation: {
createRespect(_, {respect: {item_id, item_type}}, {mutators: {Action}}) {
return wrapResponse(Action.create({item_id, item_type, action_type: 'RESPECT'}));
return wrapResponse('respect')(Action.create({item_id, item_type, action_type: 'RESPECT'}));
}
}
},