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); }