From 3321e962e550328ebb9dd549ca29515f7926f963 Mon Sep 17 00:00:00 2001 From: H <99153215+hyeon0208@users.noreply.github.com> Date: Thu, 26 Sep 2024 23:26:02 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20OSIV=20false=20=EC=84=A4=EC=A0=95?= =?UTF-8?q?=EC=9C=BC=EB=A1=9C=20=EC=9D=B8=ED=95=9C=20=EC=8A=A4=EC=BC=80?= =?UTF-8?q?=EC=A4=84=EB=A7=81=20=EB=A9=94=EC=84=9C=EB=93=9C=20=ED=8A=B8?= =?UTF-8?q?=EB=9E=9C=EC=9E=AD=EC=85=98=20=EC=84=A0=EC=96=B8=20(#617)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/build.gradle | 4 ++-- .../com/ody/notification/service/NotificationService.java | 6 +++++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/backend/build.gradle b/backend/build.gradle index 7c379620a..d6fa2f7b2 100644 --- a/backend/build.gradle +++ b/backend/build.gradle @@ -62,8 +62,8 @@ dependencies { annotationProcessor 'org.projectlombok:lombok' compileOnly 'org.projectlombok:lombok' - implementation "org.flywaydb:flyway-mysql" - implementation "org.flywaydb:flyway-core" + implementation 'org.flywaydb:flyway-mysql' + implementation 'org.flywaydb:flyway-core' } tasks.named('test') { diff --git a/backend/src/main/java/com/ody/notification/service/NotificationService.java b/backend/src/main/java/com/ody/notification/service/NotificationService.java index 8c8d9bbda..6abbaf40d 100644 --- a/backend/src/main/java/com/ody/notification/service/NotificationService.java +++ b/backend/src/main/java/com/ody/notification/service/NotificationService.java @@ -80,6 +80,7 @@ public void scheduleNotification(FcmGroupSendRequest fcmGroupSendRequest) { ); } + @Transactional @EventListener(ApplicationReadyEvent.class) public void schedulePendingNotification() { List notifications = notificationRepository.findAllByTypeAndStatus( @@ -92,7 +93,10 @@ public void schedulePendingNotification() { @DisabledDeletedFilter public NotiLogFindResponses findAllMeetingLogs(Long meetingId) { - List notifications = notificationRepository.findAllMeetingLogsBeforeThanEqual(meetingId, LocalDateTime.now()); + List notifications = notificationRepository.findAllMeetingLogsBeforeThanEqual( + meetingId, + LocalDateTime.now() + ); return NotiLogFindResponses.from(notifications); }