Skip to content

Commit

Permalink
Edit: 장바구니에 제품 주문 시, 장바구니 내역 삭제 기능 주석 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
Si-Hyeak-KANG committed Apr 6, 2023
1 parent 72656fa commit 31aa97d
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,10 @@ public ResponseEntity OrderSingleProduct(@PathVariable("product-id") Long produc
public ResponseEntity orderProductsInCart() {
Cart cartOfMember = getCartByMember();
Orders newOrder = ordersService.orderProductsInCart(cartOfMember);

// 장바구니에 제품 주문이 성공하면, 장바구니 내역 전체 삭제 기능이 수행
cartService.successOrderAndDeleteCartAll(cartOfMember);

OrderResponseDto response = new OrderResponseDto(newOrder);
return new ResponseEntity(
new SingleOrderResponse(response), HttpStatus.OK);
Expand Down

0 comments on commit 31aa97d

Please sign in to comment.