summaryrefslogtreecommitdiff
path: root/packages/backend/src/server/api/integration/GithubServerService.ts
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2022-12-06 12:41:11 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2022-12-06 12:41:11 +0900
commit9cda400c806eac04e4919151df1ed0cc73382dca (patch)
treec53a3f2f18591638e291366e8d18b4e00f91eebf /packages/backend/src/server/api/integration/GithubServerService.ts
parentfeat(client): add new gabber kick sounds (diff)
downloadsharkey-9cda400c806eac04e4919151df1ed0cc73382dca.tar.gz
sharkey-9cda400c806eac04e4919151df1ed0cc73382dca.tar.bz2
sharkey-9cda400c806eac04e4919151df1ed0cc73382dca.zip
fix(server): GitHub連携ができない問題を修正
Diffstat (limited to 'packages/backend/src/server/api/integration/GithubServerService.ts')
-rw-r--r--packages/backend/src/server/api/integration/GithubServerService.ts4
1 files 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 3aa04f72ee..186748dab5 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<string, unknown>;
- if (typeof login !== 'string' || typeof id !== 'string') {
+ if (typeof login !== 'string' || typeof id !== 'number') {
throw new FastifyReplyError(400, 'invalid session');
}