diff --git a/src/main/java/yerong/wedle/WedleApplication.java b/src/main/java/yerong/wedle/WedleApplication.java index 11868dd..6902f4c 100644 --- a/src/main/java/yerong/wedle/WedleApplication.java +++ b/src/main/java/yerong/wedle/WedleApplication.java @@ -3,7 +3,9 @@ import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.data.jpa.repository.config.EnableJpaAuditing; +import org.springframework.scheduling.annotation.EnableScheduling; +@EnableScheduling @EnableJpaAuditing @SpringBootApplication public class WedleApplication { diff --git a/src/main/java/yerong/wedle/notification/service/NotificationService.java b/src/main/java/yerong/wedle/notification/service/NotificationService.java index 4d872c8..e4bb208 100644 --- a/src/main/java/yerong/wedle/notification/service/NotificationService.java +++ b/src/main/java/yerong/wedle/notification/service/NotificationService.java @@ -72,7 +72,7 @@ private CalendarEvent getCalendarEventById(Long calendarId) { } @Transactional - @Scheduled(cron = "0 0 10 * * ?") + @Scheduled(cron = "0 40 14 * * ?") public void sendNotifications() { LocalDate today = LocalDate.now(); List dueNotifications = notificationRepository.findByNotificationDate(today); @@ -81,7 +81,7 @@ public void sendNotifications() { if (notification.isActive()) { List registrationTokens = notification.getRegistrationTokens(); String title = notification.getEvent().getTitle(); - String body = ""; + String body = "일정 당일입니다."; FcmUtils.broadCast(registrationTokens, title, body);