mirror of
https://github.com/wassname/talk.git
synced 2026-07-23 13:10:20 +08:00
setUsername refactor
This commit is contained in:
@@ -3,6 +3,7 @@ import {createDefaultResponseFragments} from '../utils';
|
||||
// fragments defined here are automatically registered.
|
||||
export default {
|
||||
...createDefaultResponseFragments(
|
||||
'SetUsernameResponse',
|
||||
'SetUserBanStatusResponse',
|
||||
'SetUserSuspensionStatusResponse',
|
||||
'SetCommentStatusResponse',
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user