diff --git a/components/account/update.tsx b/components/account/update.tsx index 7b753d2..bd39483 100644 --- a/components/account/update.tsx +++ b/components/account/update.tsx @@ -41,7 +41,7 @@ const updateLevel = async (formData: FormData) => { AccountUpdateLevelMutationVariables >({ mutation: AccountUpdateLevelDocument, - variables: { input: { uid: auditedAccount.id, level: AccountLevel.Two } }, + variables: { input: { accountId: auditedAccount.id, level: AccountLevel.Two } }, }) revalidatePath("/account") @@ -69,7 +69,7 @@ const updateStatus = async (formData: FormData) => { AccountUpdateStatusMutationVariables >({ mutation: AccountUpdateStatusDocument, - variables: { input: { uid: auditedAccount.id, status: targetStatus } }, + variables: { input: { accountId: auditedAccount.id, status: targetStatus } }, }) revalidatePath("/account") diff --git a/generated.ts b/generated.ts index c066602..4d91c57 100644 --- a/generated.ts +++ b/generated.ts @@ -78,14 +78,14 @@ export const AccountStatus = { export type AccountStatus = typeof AccountStatus[keyof typeof AccountStatus]; export type AccountUpdateLevelInput = { + readonly accountId: Scalars['AccountId']['input']; readonly level: AccountLevel; - readonly uid: Scalars['ID']['input']; }; export type AccountUpdateStatusInput = { + readonly accountId: Scalars['AccountId']['input']; readonly comment?: InputMaybe; readonly status: AccountStatus; - readonly uid: Scalars['ID']['input']; }; export type AdminPushNotificationSendInput = {