Skip to content
Snippets Groups Projects
Commit 9cda400c authored by syuilo's avatar syuilo
Browse files

fix(server): GitHub連携ができない問題を修正

parent f3e869dd
No related branches found
No related tags found
No related merge requests found
......@@ -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');
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment