Skip to content
This repository has been archived by the owner on Feb 2, 2024. It is now read-only.

Commit

Permalink
chore: update arg following breaking change on the admin api
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicolas Burtey committed Oct 14, 2023
1 parent 0ace1ae commit f3b0c00
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions components/account/update.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -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")
Expand Down
4 changes: 2 additions & 2 deletions generated.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<Scalars['String']['input']>;
readonly status: AccountStatus;
readonly uid: Scalars['ID']['input'];
};

export type AdminPushNotificationSendInput = {
Expand Down

0 comments on commit f3b0c00

Please sign in to comment.