Skip to content

Commit

Permalink
fix: 공연 알림 설정 수정 (#148)
Browse files Browse the repository at this point in the history
  • Loading branch information
GaBaljaintheroom authored Sep 4, 2024
1 parent 3c9c645 commit b2abaeb
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -151,16 +151,16 @@ public void alertReservation(
ticketingAlertReservationRequest.type().toDomainType()
);

var request = ticketingAlertReservationRequest.toDomainRequest(
showTicketingTime.getShow().getTitle(),
showTicketingTime.getTicketingAt()
);

if (request.alertTimes().isEmpty()) {
if (showTicketingTime.getTicketingAt().isBefore(LocalDateTime.now())) {
throw new BusinessException(ShowError.TICKETING_ALERT_RESERVED_ERROR);
}

var domainResponse = ticketingAlertUseCase.alertReservation(request);
var domainResponse = ticketingAlertUseCase.alertReservation(
ticketingAlertReservationRequest.toDomainRequest(
showTicketingTime.getShow().getTitle(),
showTicketingTime.getTicketingAt()
)
);
messagePublisher.publishTicketingReservation(
"ticketingAlert",
TicketingAlertsToReserveServiceMessage.from(domainResponse)
Expand Down

0 comments on commit b2abaeb

Please sign in to comment.