setUsername refactor

This commit is contained in:
Belen Curcio
2017-11-20 15:37:06 -03:00
parent dbe88e58f4
commit 43e9da9cbc
2 changed files with 2 additions and 1 deletions
@@ -3,6 +3,7 @@ import {createDefaultResponseFragments} from '../utils';
// fragments defined here are automatically registered.
export default {
...createDefaultResponseFragments(
'SetUsernameResponse',
'SetUserBanStatusResponse',
'SetUserSuspensionStatusResponse',
'SetCommentStatusResponse',
+1 -1
View File
@@ -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
}