refactor: Rename "suspend" into "ban" for account deletion

This commit is contained in:
Massedil
2025-09-27 16:47:53 +02:00
parent 4afbe18621
commit 6d42c700bf
8 changed files with 39 additions and 37 deletions

View File

@@ -76,7 +76,7 @@ export const VALIDATE_EMAIL = gql`
}
`;
export const DELETE_ACCOUNT = gql`
export const DELETE_ACCOUNT_AS_USER = gql`
mutation DeleteAccount($password: String, $userId: ID) {
deleteAccount(password: $password, userId: $userId) {
id
@@ -84,8 +84,8 @@ export const DELETE_ACCOUNT = gql`
}
`;
export const SUSPEND_USER = gql`
mutation SuspendUser($userId: ID) {
export const DELETE_ACCOUNT_AS_MODERATOR = gql`
mutation DeleteAccount($userId: ID) {
deleteAccount(userId: $userId) {
id
}