Skip to content

Commit

Permalink
Merge pull request #97 from marinesnow34/cart
Browse files Browse the repository at this point in the history
Fix: cart 검색 불가 수정
  • Loading branch information
marinesnow34 authored Nov 26, 2023
2 parents 0bf71e2 + 1c52edf commit f941871
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 f941871

Please sign in to comment.