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

Commit

Permalink
use gql doc generated by codegen
Browse files Browse the repository at this point in the history
  • Loading branch information
TaiSakuma committed Aug 11, 2023
1 parent 476342a commit ebf3cf8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/utils/admin-token.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { Client } from "@urql/vue";
import AddGitHubAdminAppToken from "@/graphql/mutations/AddGitHubAdminAppToken.gql";

import { AddGitHubAdminAppTokenDocument } from "@/generated/graphql";

const AUTH_ADMIN_STATE = "auth-state";

Expand All @@ -20,7 +21,7 @@ export async function storeAdminAppToken(
throw new Error("The state did not match.");
}
const { error } = await urqlClient
.mutation(AddGitHubAdminAppToken, { code: code })
.mutation(AddGitHubAdminAppTokenDocument, { code: code })
.toPromise();
if (error) throw error;
}

0 comments on commit ebf3cf8

Please sign in to comment.