From cd04235e6df1ed24fd51b655e81e1707f7617522 Mon Sep 17 00:00:00 2001 From: rca Date: Tue, 9 Jul 2024 01:43:55 +0900 Subject: [PATCH] =?UTF-8?q?=E5=9E=8B=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/routers/child/authRouter.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/routers/child/authRouter.ts b/src/routers/child/authRouter.ts index fc5fd6e..4b3dd84 100644 --- a/src/routers/child/authRouter.ts +++ b/src/routers/child/authRouter.ts @@ -5,11 +5,11 @@ const router = Router(); // login router.post('/login', (req: Request, res: Response) => { - const code: number = req.body.code; - if (!code) { + const loginCode: string = req.body.loginCode; + if (!loginCode) { return res.status(400).json({ message: 'ログインコードが指定されていません' }); } - login(code).then((token) => { + login(loginCode).then((token) => { res.status(200).json({ accessToken: token }); }).catch((err) => { res.status(500).json({ message: 'ログインに失敗しました', detail: err });