Skip to content

Commit 8d10a4f

Browse files
authored
Merge pull request #121 from codeit-moving/release
Release -> Main 202501016 13:20 params update
2 parents dddec12 + 9bfabe2 commit 8d10a4f

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)