Skip to content

Commit

Permalink
a
Browse files Browse the repository at this point in the history
  • Loading branch information
phuuthanh-dev committed Jul 21, 2024
1 parent 78e6189 commit f6d532c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ public void deleteBidByUserAndAuction(Integer userId, Integer auctionId, String
List<AuctionHistory> lastActiveBids = auctionHistoryRepository.findLastActiveBidByAuctionId(auctionId);
if (!lastActiveBids.isEmpty()) {
AuctionHistory lastActiveBid = lastActiveBids.get(0);
if (lastActiveBid.getPriceGiven() < auction.getJewelry().getBuyNowPrice()) {
if (lastActiveBid.getPriceGiven() < auction.getJewelry().getBuyNowPrice() && auction.getEndDateStored() != null) {
auction.setEndDate(auction.getEndDateStored());
}
auction.setLastPrice(lastActiveBid.getPriceGiven());
Expand Down

0 comments on commit f6d532c

Please sign in to comment.