Skip to content

Commit

Permalink
Fix: 마지막 경매시간 관련 수정 (#115)
Browse files Browse the repository at this point in the history
  • Loading branch information
klkim1913 authored Aug 15, 2023
1 parent 7d0004a commit 87b3567
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/com/anywayclear/service/AuctionService.java
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ public BiddingResponse Bidding(long auctionId, String consumerId, BiddingRequest
}
auction.setPrice(request.getPrice()); // 트랜잭션 내에서 변경시 자동 update
auction.setNickname(consumer.getNickname());
return BiddingResponse.builder().userId(consumerId).nickname(consumer.getNickname()).updatedAt(auction.getUpdatedAt()).price(request.getPrice()).build();
auction.setLastBidding(LocalDateTime.now());
return BiddingResponse.builder().userId(consumerId).nickname(consumer.getNickname()).updatedAt(auction.getLastBidding()).price(request.getPrice()).build();
}

@Transactional
Expand Down

0 comments on commit 87b3567

Please sign in to comment.