Skip to content

Commit

Permalink
Update index.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
CatChen authored Aug 4, 2024
1 parent 94d8c14 commit e1c1e25
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import {
import { graphql } from './__graphql__/gql.js';
import { getOctokit } from './getOctokit.js';

const LOGIN_QUERY = graphql(`
query ViewLogin {
const queryViewerLogin = graphql(`
query ViewerLogin {
viewer {
login
}
Expand All @@ -23,9 +23,9 @@ export async function getLogin(githubToken: string): Promise<string> {
const {
viewer: { login },
} = (await octokit.graphql<{ viewer: { login: string } }>(
LOGIN_QUERY,
queryViewerLogin,
{},
)) as ResultOf<typeof LOGIN_QUERY>;
)) as ResultOf<typeof queryViewerLogin>;
return login;
}

Expand Down

0 comments on commit e1c1e25

Please sign in to comment.