Skip to content

Commit 9bfabe2

Browse files
authored
Merge pull request #120 from codeit-moving/dev
Dev -> Release 20250106 13:19 params update
2 parents 04463f7 + 17c41c9 commit 9bfabe2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/controllers/reviewController.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,14 +58,15 @@ router.get(
5858

5959
// 리뷰 생성하기
6060
router.post(
61-
"/",
61+
"/:id",
6262
passport.authenticate("jwt", { session: false }),
6363
upload.array("imageUrl", 3), // 수정: images -> imageUrl로 변경 (DB 필드명과 일치)
6464
uploadOptionalFiles, // 미들웨어 추가
6565
asyncHandle(async (req, res) => {
6666
const user = req.user as User;
6767
const customerId = user.customerId;
68-
const { confirmedQuoteId, rating, content } = req.body;
68+
const confirmedQuoteId = parseInt(req.params.id);
69+
const { rating, content } = req.body;
6970

7071
if (!customerId) {
7172
throwHttpError(400, "고객 ID가 필요합니다.");

0 commit comments

Comments
 (0)