Fix event deletion schedule
Signed-off-by: William Brawner <me@wbrawner.com>
This commit is contained in:
parent
a31eec5e0a
commit
1a3e72286f
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue