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

chore: update arg following breaking change on the admin api #266

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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