From 6e6ddbf378ffda664618acea7100ed12f264ef96 Mon Sep 17 00:00:00 2001 From: Belen Curcio Date: Thu, 23 Nov 2017 08:42:08 -0300 Subject: [PATCH] Suspension response --- client/coral-framework/graphql/fragments.js | 2 +- client/coral-framework/graphql/mutations.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/client/coral-framework/graphql/fragments.js b/client/coral-framework/graphql/fragments.js index fa45b69da..1b6add999 100644 --- a/client/coral-framework/graphql/fragments.js +++ b/client/coral-framework/graphql/fragments.js @@ -9,7 +9,7 @@ export default { 'SetUserSuspensionStatusResponse', 'SetCommentStatusResponse', 'SuspendUserResponse', - 'SetUsernameStatusResponse', + 'SuspendUserResponse', 'CreateCommentResponse', 'CreateFlagResponse', 'EditCommentResponse', diff --git a/client/coral-framework/graphql/mutations.js b/client/coral-framework/graphql/mutations.js index 25ad3205c..021984ff9 100644 --- a/client/coral-framework/graphql/mutations.js +++ b/client/coral-framework/graphql/mutations.js @@ -160,9 +160,9 @@ export const withSetCommentStatus = withMutation( export const withSuspendUser = withMutation( gql` - mutation SuspendUser($input: SetUserSuspensionStatusInput!) { - setUserSuspensionStatus(input: $input) { - ...SetUserSuspensionStatusResponse + mutation SuspendUser($input: SuspendUserInput!) { + suspendUser(input: $input) { + ...SuspendUserResponse } } `, {