Skip to content

Commit

Permalink
Merge pull request #61 from lotteon2/develop
Browse files Browse the repository at this point in the history
[FIX] 시간로그 추가
  • Loading branch information
ssjy4974 authored Jan 26, 2024
2 parents 28f767d + 4886399 commit 96a3c17
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,8 @@ public Mono<Auction> startAuction(String auctionId) {
.switchIfEmpty(Mono.error(new RuntimeException("존재하지 않는 경매입니다")))
.flatMap(
auction -> {
log.info("localDateTime now : {}", LocalDateTime.now());
log.info("auction get startAt : {}",auction.getStartAt());
// 현재 시각이 경매 시작 시간과 같거나 이후이고, 아직 시작되지 않고, 끝나지 않은 경매라면 시작 가능
if ((LocalDateTime.now().isEqual(auction.getStartAt())
|| LocalDateTime.now().isAfter(auction.getStartAt()))
Expand Down

0 comments on commit 96a3c17

Please sign in to comment.