We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 508b3ee + 3e0c5ae commit c8d685fCopy full SHA for c8d685f
1 file changed
apps/commerce-api/src/main/java/com/loopers/application/order/OrderFacade.java
@@ -59,7 +59,7 @@ public OrderResultInfo createOrder(OrderV1Dto.OrderRequest request) {
59
if (product.getStock() < item.quantity()) {
60
throw new CoreException(ErrorType.BAD_REQUEST, product.getName() + " 상품의 재고가 부족합니다.");
61
}
62
-
+
63
product.decreaseStock(item.quantity());
64
65
OrderItem orderItem = item.toEntity(
0 commit comments