Skip to content

Commit 1c7f85d

Browse files
authored
Merge pull request #208 from JA-yeong-eop-JA-moeu-JA/fix/#204-coupon
🧹 chore: 결제 시 team id null 가능하도록 수정한 것 롤백
2 parents 5c1c0e2 + f2e59aa commit 1c7f85d

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/main/java/com/jajaja/domain/order/service/OrderCommandServiceImpl.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,7 @@ public OrderPrepareResponseDto prepareOrder(Long memberId, OrderPrepareRequestDt
9393
cp.getUnitPrice() * cp.getQuantity())
9494
.sum();
9595
} else {
96-
if (request.teamId() != null) {
97-
teamRepository.findById(request.teamId()).orElseThrow(() -> new BadRequestException(ErrorStatus.TEAM_NOT_FOUND));
98-
}
96+
teamRepository.findById(request.teamId()).orElseThrow(() -> new BadRequestException(ErrorStatus.TEAM_NOT_FOUND));
9997
totalAmount = cartProducts.stream()
10098
.mapToInt(cp ->
10199
cp.getQuantity() * (productCommonService.calculateDiscountedPrice(cp.getUnitPrice(), cp.getProduct().getDiscountRate())))

0 commit comments

Comments
 (0)