From 9cda400c806eac04e4919151df1ed0cc73382dca Mon Sep 17 00:00:00 2001 From: syuilo Date: Tue, 6 Dec 2022 12:41:11 +0900 Subject: [PATCH] =?UTF-8?q?fix(server):=20GitHub=E9=80=A3=E6=90=BA?= =?UTF-8?q?=E3=81=8C=E3=81=A7=E3=81=8D=E3=81=AA=E3=81=84=E5=95=8F=E9=A1=8C?= =?UTF-8?q?=E3=82=92=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../backend/src/server/api/integration/GithubServerService.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/backend/src/server/api/integration/GithubServerService.ts b/packages/backend/src/server/api/integration/GithubServerService.ts index 3aa04f72e..186748dab 100644 --- a/packages/backend/src/server/api/integration/GithubServerService.ts +++ b/packages/backend/src/server/api/integration/GithubServerService.ts @@ -13,8 +13,8 @@ import { GlobalEventService } from '@/core/GlobalEventService.js'; import { MetaService } from '@/core/MetaService.js'; import { UserEntityService } from '@/core/entities/UserEntityService.js'; import { FastifyReplyError } from '@/misc/fastify-reply-error.js'; -import { SigninService } from '../SigninService.js'; import { bindThis } from '@/decorators.js'; +import { SigninService } from '../SigninService.js'; @Injectable() export class GithubServerService { @@ -227,7 +227,7 @@ export class GithubServerService { 'Authorization': `bearer ${accessToken}`, })) as Record; - if (typeof login !== 'string' || typeof id !== 'string') { + if (typeof login !== 'string' || typeof id !== 'number') { throw new FastifyReplyError(400, 'invalid session'); }