Sends a mail to the suspended user.

This commit is contained in:
gaba
2017-03-21 15:08:46 -07:00
parent b9960c3cc7
commit 7522bd9cd6
12 changed files with 54 additions and 17 deletions
+2 -2
View File
@@ -47,8 +47,8 @@ const RootMutation = {
setUserStatus(_, {id, status}, {mutators: {User}}) {
return wrapResponse(null)(User.setUserStatus({id, status}));
},
suspendUser(_, {id}, {mutators: {User}}) {
return wrapResponse(null)(User.suspendUser({id}));
suspendUser(_, {id, message}, {mutators: {User}}) {
return wrapResponse(null)(User.suspendUser({id, message}));
},
setCommentStatus(_, {id, status}, {mutators: {Comment}}) {
return wrapResponse(null)(Comment.setCommentStatus({id, status}));