Skip to content

Commit

Permalink
Fix: cart 검색 불가 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
marinesnow34 committed Nov 26, 2023
1 parent e9a4032 commit 1c52edf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public ResponseEntity<FoodyDetailRes> getFoody(

@GetMapping("/cart")
public ResponseEntity<CartGetRes> getCart(@AuthenticationPrincipal CustomUserDetails userDetails,
@RequestParam("cartId") Long cartId) {
@RequestParam(value = "cartId", required = false) Long cartId) {
CartGetRes cartGetRes = orderService.getCart(userDetails, cartId);
return new ResponseEntity<>(cartGetRes, HttpStatus.OK);
}
Expand Down

0 comments on commit 1c52edf

Please sign in to comment.