Skip to content

Commit

Permalink
release: 0.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
devxb committed Jan 30, 2024
1 parent 1626377 commit 40370fb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public class BeforeMeetingAlertHandler {
private final AlertPublisher<BeforeMeetingAlert> 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())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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())
)
Expand Down

0 comments on commit 40370fb

Please sign in to comment.