From 40370fb671f327ae4c07ac19a8711857e7803dfa Mon Sep 17 00:00:00 2001 From: devxb Date: Wed, 31 Jan 2024 01:05:59 +0900 Subject: [PATCH] release: 0.3.0 --- .../java/net/teumteum/alert/app/BeforeMeetingAlertHandler.java | 2 +- .../net/teumteum/meeting/service/MeetingAlertPublisher.java | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/java/net/teumteum/alert/app/BeforeMeetingAlertHandler.java b/src/main/java/net/teumteum/alert/app/BeforeMeetingAlertHandler.java index 3c060e4..9723fb0 100644 --- a/src/main/java/net/teumteum/alert/app/BeforeMeetingAlertHandler.java +++ b/src/main/java/net/teumteum/alert/app/BeforeMeetingAlertHandler.java @@ -22,7 +22,7 @@ public class BeforeMeetingAlertHandler { private final AlertPublisher alertPublisher; @Async(ALERT_EXECUTOR) - @EventListener({MeetingAlerted.class}) + @EventListener(MeetingAlerted.class) public void alert(MeetingAlerted alerted) { System.out.println(">>> alert(" + alerted.userIds() + ")"); alertService.findAllByUserId(alerted.userIds()) diff --git a/src/main/java/net/teumteum/meeting/service/MeetingAlertPublisher.java b/src/main/java/net/teumteum/meeting/service/MeetingAlertPublisher.java index 0ff4933..d0decfe 100644 --- a/src/main/java/net/teumteum/meeting/service/MeetingAlertPublisher.java +++ b/src/main/java/net/teumteum/meeting/service/MeetingAlertPublisher.java @@ -23,8 +23,11 @@ public class MeetingAlertPublisher { public void alertMeeting() { System.out.println(">>> alertMeeting()"); var alertStart = LocalDateTime.now().plusMinutes(5); + System.out.println(">>> alertStart " + alertStart); var alertEnd = alertStart.plusMinutes(1); + System.out.println(">>> alertEnd " + alertEnd); var alertTargets = meetingRepository.findAlertMeetings(alertStart, alertEnd); + alertTargets.forEach(System.out::println); alertTargets.forEach(meeting -> eventPublisher.publishEvent( new MeetingAlerted(meeting.getParticipantUserIds()) )