From 8e582bff452be7aee9a414e8ff5dad3f997cce80 Mon Sep 17 00:00:00 2001 From: Belen Curcio Date: Mon, 11 Dec 2017 08:37:09 -0300 Subject: [PATCH] Adding unSuspendUser mutation --- client/coral-framework/graphql/mutations.js | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/client/coral-framework/graphql/mutations.js b/client/coral-framework/graphql/mutations.js index ef1f0d6a1..8797f0753 100644 --- a/client/coral-framework/graphql/mutations.js +++ b/client/coral-framework/graphql/mutations.js @@ -177,6 +177,25 @@ export const withSuspendUser = withMutation( }) }); +export const withUnSuspendUser = withMutation( + gql` + mutation UnSuspendUser($input: SuspendUserInput!) { + unSuspendUser(input: $input) { + ...SuspendUserResponse + } + } + `, { + props: ({mutate}) => ({ + unSuspendUser: (input) => { + return mutate({ + variables: { + input, + }, + }); + } + }), + }); + export const withApproveUsername = withMutation( gql` mutation ApproveUsername($id: ID!) {