Fix event deletion schedule

Signed-off-by: William Brawner <me@wbrawner.com>
This commit is contained in:
William Brawner 2020-09-05 12:28:50 -07:00
parent a31eec5e0a
commit 1a3e72286f

View file

@ -22,7 +22,7 @@ public class EventScheduler {
this.eventRepository = eventRepository;
}
@Scheduled(cron = "0 0 * * *")
@Scheduled(cron = "0 0 0 * * *")
public void deleteOldEvents() {
Calendar calendar = Calendar.getInstance(TimeZone.getTimeZone("UTC"));
calendar.add(Calendar.DATE, -90);