Skip to content

Commit b20ba68

Browse files
committed
refactor: Order에서 재고 검증 로직 삭제
1 parent b7c1fc4 commit b20ba68

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

  • apps/commerce-api/src/main/java/com/loopers/domain/order

apps/commerce-api/src/main/java/com/loopers/domain/order/Order.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,6 @@ public void addOrderItem(Product product, int quantity) {
4848
if (quantity <= 0) {
4949
throw new IllegalArgumentException("주문 수량은 0보다 커야 합니다");
5050
}
51-
if (product.getStock() < quantity) {
52-
throw new IllegalArgumentException("재고가 부족합니다");
53-
}
5451

5552
orderItems.add(new OrderItem(product, quantity));
5653

0 commit comments

Comments
 (0)