From 73666399b45ac17cb6f2a988252a34052378743a Mon Sep 17 00:00:00 2001 From: okbel Date: Wed, 20 Dec 2017 20:00:34 -0300 Subject: [PATCH] Updating the store mutations --- client/coral-framework/graphql/fragments.js | 1 + client/coral-framework/graphql/mutations.js | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/client/coral-framework/graphql/fragments.js b/client/coral-framework/graphql/fragments.js index 00c563e1b..26073676b 100644 --- a/client/coral-framework/graphql/fragments.js +++ b/client/coral-framework/graphql/fragments.js @@ -10,6 +10,7 @@ export default { 'SetUserSuspensionStatusResponse', 'SetCommentStatusResponse', 'SetUsernameStatusResponse', + 'UnSuspendUserResponse', 'SuspendUserResponse', 'CreateCommentResponse', 'CreateFlagResponse', diff --git a/client/coral-framework/graphql/mutations.js b/client/coral-framework/graphql/mutations.js index 8797f0753..80d28d784 100644 --- a/client/coral-framework/graphql/mutations.js +++ b/client/coral-framework/graphql/mutations.js @@ -179,9 +179,9 @@ export const withSuspendUser = withMutation( export const withUnSuspendUser = withMutation( gql` - mutation UnSuspendUser($input: SuspendUserInput!) { + mutation UnSuspendUser($input: UnSuspendUserInput!) { unSuspendUser(input: $input) { - ...SuspendUserResponse + ...UnSuspendUserResponse } } `, {