Skip to content

Commit

Permalink
refactor: #452 입찰 알림 메시지 수정 (#453)
Browse files Browse the repository at this point in the history
  • Loading branch information
kwonyj1022 authored and swonny committed Oct 6, 2023
1 parent 3b1222b commit 7123d24
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@
@Slf4j
public class BidService {

private static final String BID_NOTIFICATION_MESSAGE_FORMAT = "상위 입찰자가 나타났습니다. 구매를 원하신다면 더 높은 가격을 제시해 주세요.";

private final NotificationService notificationService;
private final JpaAuctionRepository auctionRepository;
private final JpaUserRepository userRepository;
Expand Down Expand Up @@ -147,7 +149,7 @@ private String sendNotification(
NotificationType.BID,
previousBidder.getId(),
auction.getTitle(),
String.valueOf(auction.getLastBid().getPrice()),
BID_NOTIFICATION_MESSAGE_FORMAT,
calculateRedirectUrl(auction.getId()),
ImageUrlCalculator.calculateAuctionImageUrl(auctionImage, baseUrl)
);
Expand Down

0 comments on commit 7123d24

Please sign in to comment.