mirror of
https://github.com/wassname/talk.git
synced 2026-09-10 12:43:11 +08:00
applied rename to graph mutation edges
This commit is contained in:
@@ -34,13 +34,13 @@ const RootMutation = {
|
||||
suspendUser: async (obj, {input: {id, until, message}}, {mutators: {User}}) => {
|
||||
await User.setUserSuspensionStatus(id, until, message);
|
||||
},
|
||||
unSuspendUser: async (obj, {input: {id}}, {mutators: {User}}) => {
|
||||
unsuspendUser: async (obj, {input: {id}}, {mutators: {User}}) => {
|
||||
await User.setUserSuspensionStatus(id);
|
||||
},
|
||||
banUser: async (obj, {input: {id, message}}, {mutators: {User}}) => {
|
||||
await User.setUserBanStatus(id, true, message);
|
||||
},
|
||||
unBanUser: async (obj, {input: {id}}, {mutators: {User}}) => {
|
||||
unbanUser: async (obj, {input: {id}}, {mutators: {User}}) => {
|
||||
await User.setUserBanStatus(id, false);
|
||||
},
|
||||
ignoreUser: async (_, {id}, {mutators: {User}}) => {
|
||||
|
||||
@@ -1396,7 +1396,7 @@ type RootMutation {
|
||||
|
||||
# Sets the suspension status on a given user. Requires the `MODERATOR` role.
|
||||
# Mutation is restricted.
|
||||
unSuspendUser(input: UnSuspendUserInput!): UnSuspendUserResponse
|
||||
unsuspendUser(input: UnSuspendUserInput!): UnSuspendUserResponse
|
||||
|
||||
# Sets the ban status on a given user. Requires the `MODERATOR` role.
|
||||
# Mutation is restricted.
|
||||
@@ -1404,7 +1404,7 @@ type RootMutation {
|
||||
|
||||
# Sets the ban status on a given user. Requires the `MODERATOR` role.
|
||||
# Mutation is restricted.
|
||||
unBanUser(input: UnBanUserInput!): UnBanUserResponse
|
||||
unbanUser(input: UnBanUserInput!): UnBanUserResponse
|
||||
|
||||
# Sets the username status on a given user to `APPROVED`. Requires the
|
||||
# `MODERATOR` role. Mutation is restricted.
|
||||
|
||||
Reference in New Issue
Block a user