|
|
@ -66,7 +66,7 @@ public class EventService {
|
|
|
|
return eventRepository.findAll(ids);
|
|
|
|
return eventRepository.findAll(ids);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Scheduled(cron = "0 8 1 * * ?")
|
|
|
|
@Scheduled(cron = "0 0 8 * * ?")
|
|
|
|
public void sendNotifications() {
|
|
|
|
public void sendNotifications() {
|
|
|
|
List<Event> events = eventRepository.findByCurrentDate();
|
|
|
|
List<Event> events = eventRepository.findByCurrentDate();
|
|
|
|
events.forEach(event -> {
|
|
|
|
events.forEach(event -> {
|
|
|
|