Skip to content

Commit

Permalink
๐Ÿ› Fix updatePrice
Browse files Browse the repository at this point in the history
  • Loading branch information
wonseok committed Jan 26, 2025
1 parent 7e6ac60 commit 6712808
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class AuctionService(

auctionEntity.currentPrice = auctionMessage.price
auctionEntity.bidder = bidder
if (ChronoUnit.MINUTES.between(auctionEntity.endTime, Instant.now()) <= 1) {
if (ChronoUnit.SECONDS.between(Instant.now(), auctionEntity.endTime) <= 60) {
auctionEntity.endTime = Instant.now().plus(1, ChronoUnit.MINUTES)
}

Expand Down

0 comments on commit 6712808

Please sign in to comment.