Skip to content

Commit

Permalink
[FIX] 히스토리 내역 저장 후 sqs발송 로직 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
ssjy4974 committed Jan 21, 2024
1 parent 959ae42 commit f99cbe0
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,10 @@ private Mono<Void> processAuction(Auction auction, Long bid) {
Mono<ReadAuctionDetailResponse.ReadProductDetailResponse> productInfo =
productClient.readProductDetail(auction.getAuctionProductId());

return Mono.when(
saveSuccessfulBiddersHistory(productInfo, auction, bid),
saveRemainBiddersHistory(productInfo, auction, bid),
sendSqsNotification(auction));
return Mono.zip(
saveSuccessfulBiddersHistory(productInfo, auction, bid),
saveRemainBiddersHistory(productInfo, auction, bid))
.then(sendSqsNotification(auction));
}

private Mono<Void> saveSuccessfulBiddersHistory(
Expand Down

0 comments on commit f99cbe0

Please sign in to comment.