Skip to content

Commit 2ad99ed

Browse files
authored
Merge pull request #187 from Kimjipang/main
[volume-7] Decoupling with Event
2 parents 0195bcc + c8d685f commit 2ad99ed

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/commerce-api/src/main/java/com/loopers/application/order/OrderFacade.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public OrderResultInfo createOrder(OrderV1Dto.OrderRequest request) {
5959
if (product.getStock() < item.quantity()) {
6060
throw new CoreException(ErrorType.BAD_REQUEST, product.getName() + " 상품의 재고가 부족합니다.");
6161
}
62-
62+
6363
product.decreaseStock(item.quantity());
6464

6565
OrderItem orderItem = item.toEntity(

0 commit comments

Comments
 (0)