From f33b2ed01534f6918e8843daa98756d298b04190 Mon Sep 17 00:00:00 2001 From: LeeWxx <dnckd0903@naver.com> Date: Sat, 7 Dec 2024 23:22:24 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20pcId=20=EB=B3=80=EC=88=98=EB=AA=85=20?= =?UTF-8?q?=EC=98=A4=ED=83=80=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/routes/my.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/routes/my.js b/src/routes/my.js index 0fe315b..271da45 100644 --- a/src/routes/my.js +++ b/src/routes/my.js @@ -25,7 +25,7 @@ myRouter.patch( '/pc/:combinationId/name', authMiddleware, wrapAsync(async (req, res) => { - const { pcId } = req.params; + const { combinationId } = req.params; const { newName } = req.body; const userId = req.user.id; @@ -33,7 +33,7 @@ myRouter.patch( throw new ReportableError(400, '유효한 새로운 이름이 필요합니다.'); } - const result = await myService.updateCombinationName(userId, pcId, newName); + const result = await myService.updateCombinationName(userId, combinationId, newName); return res.status(200).json(result); }) -- GitLab