Skip to content
Snippets Groups Projects
Commit 0b8455df authored by Lee WooChang's avatar Lee WooChang
Browse files

Merge branch 'fix/update-pc-name' into 'main'

변수명 오타 수정

See merge request !15
parents a51121a6 f33b2ed0
No related branches found
No related tags found
1 merge request!15변수명 오타 수정
Pipeline #10799 failed
...@@ -25,7 +25,7 @@ myRouter.patch( ...@@ -25,7 +25,7 @@ myRouter.patch(
'/pc/:combinationId/name', '/pc/:combinationId/name',
authMiddleware, authMiddleware,
wrapAsync(async (req, res) => { wrapAsync(async (req, res) => {
const { pcId } = req.params; const { combinationId } = req.params;
const { newName } = req.body; const { newName } = req.body;
const userId = req.user.id; const userId = req.user.id;
...@@ -33,7 +33,7 @@ myRouter.patch( ...@@ -33,7 +33,7 @@ myRouter.patch(
throw new ReportableError(400, '유효한 새로운 이름이 필요합니다.'); 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); return res.status(200).json(result);
}) })
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment