mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
run every day at midnight
This commit is contained in:
@@ -24,7 +24,7 @@ public class CleaningService {
|
||||
EntityManager em;
|
||||
|
||||
// every day at midnight
|
||||
@Schedule(hour = "*", minute = "*", persistent = false)
|
||||
@Schedule(hour = "0", persistent = false)
|
||||
private void cleanOldStatuses() {
|
||||
Date threshold = applicationSettingsService.get().getUnreadThreshold();
|
||||
if (threshold != null) {
|
||||
|
||||
Reference in New Issue
Block a user