Skip to content

Commit

Permalink
Merge pull request #153 from phuuthanh-dev/develop
Browse files Browse the repository at this point in the history
a
  • Loading branch information
phuuthanh-dev authored Jul 21, 2024
2 parents 5d382bd + f6d532c commit 2d4f9d6
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 2d4f9d6

Please sign in to comment.