From 6712808e81eac4bccb10e6a314a5467fecead20c Mon Sep 17 00:00:00 2001 From: wonseok Date: Sun, 26 Jan 2025 18:17:03 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20updatePrice?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/toyProject7/karrot/auction/service/AuctionService.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/com/toyProject7/karrot/auction/service/AuctionService.kt b/src/main/kotlin/com/toyProject7/karrot/auction/service/AuctionService.kt index b1cca54..e1506a2 100644 --- a/src/main/kotlin/com/toyProject7/karrot/auction/service/AuctionService.kt +++ b/src/main/kotlin/com/toyProject7/karrot/auction/service/AuctionService.kt @@ -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) }