Skip to content

Commit

Permalink
품절 처리 로직 삭제
Browse files Browse the repository at this point in the history
  • Loading branch information
daadaadaah committed Jun 27, 2023
1 parent 82ff4a2 commit 3297982
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,6 @@ public void placeOrder(OrderForm orderForm) {

int inventoryAfterDecrease = inventoryCommandRepository.decreaseByAmount(key, orderQuantity);

if(inventoryAfterDecrease == 0) {
// TODO : [품절 처리] Redis에 저장된 dealproducts 목록에서 딜 상품 상태 오픈 -> 품절로 변경
}

// 3. 실제 주문량 계산
int realOrderQuantity = calculateRealOrderQuantity(inventoryAfterDecrease, orderQuantity, orderForm.getOutOfStockHandlingOption());

Expand Down

0 comments on commit 3297982

Please sign in to comment.