From 43e9da9cbc6e530dee51b1508b453ba9e6c3c417 Mon Sep 17 00:00:00 2001 From: Belen Curcio Date: Mon, 20 Nov 2017 15:37:06 -0300 Subject: [PATCH] setUsername refactor --- client/coral-framework/graphql/fragments.js | 1 + client/coral-framework/graphql/mutations.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/client/coral-framework/graphql/fragments.js b/client/coral-framework/graphql/fragments.js index 2440f458a..861c1f9ae 100644 --- a/client/coral-framework/graphql/fragments.js +++ b/client/coral-framework/graphql/fragments.js @@ -3,6 +3,7 @@ import {createDefaultResponseFragments} from '../utils'; // fragments defined here are automatically registered. export default { ...createDefaultResponseFragments( + 'SetUsernameResponse', 'SetUserBanStatusResponse', 'SetUserSuspensionStatusResponse', 'SetCommentStatusResponse', diff --git a/client/coral-framework/graphql/mutations.js b/client/coral-framework/graphql/mutations.js index 6a209022c..97c476efe 100644 --- a/client/coral-framework/graphql/mutations.js +++ b/client/coral-framework/graphql/mutations.js @@ -198,7 +198,7 @@ export const withRejectUsername = withMutation( export const withSetUsername = withMutation( gql` - mutation RejectUsername($id: ID!, $username: String) { + mutation RejectUsername($id: ID!, $username: String!) { setUsername(id: $id, username: $username) { ...SetUsernameResponse }