summaryrefslogtreecommitdiff
path: root/packages/backend/src/server/api/integration/GithubServerService.ts
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2023-02-01 17:29:28 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2023-02-01 17:29:28 +0900
commit387fcd5c5df04a461f346781bf5621d343b15e66 (patch)
tree221ef0eea5ab517dcad82da5813224ace6827345 /packages/backend/src/server/api/integration/GithubServerService.ts
parentrefactor: tweak variable name (diff)
downloadsharkey-387fcd5c5df04a461f346781bf5621d343b15e66.tar.gz
sharkey-387fcd5c5df04a461f346781bf5621d343b15e66.tar.bz2
sharkey-387fcd5c5df04a461f346781bf5621d343b15e66.zip
refactor: fix type
Diffstat (limited to 'packages/backend/src/server/api/integration/GithubServerService.ts')
-rw-r--r--packages/backend/src/server/api/integration/GithubServerService.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/backend/src/server/api/integration/GithubServerService.ts b/packages/backend/src/server/api/integration/GithubServerService.ts
index a8c745d2dc..76089c9359 100644
--- a/packages/backend/src/server/api/integration/GithubServerService.ts
+++ b/packages/backend/src/server/api/integration/GithubServerService.ts
@@ -132,7 +132,7 @@ export class GithubServerService {
reply.redirect(oauth2!.getAuthorizeUrl(params));
});
- fastify.get('/gh/cb', async (request, reply) => {
+ fastify.get<{ Querystring: { code: string; state: string; } }>('/gh/cb', async (request, reply) => {
const userToken = this.getUserToken(request);
const oauth2 = await getOath2();