mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
move utility method to service (fix #463)
This commit is contained in:
@@ -35,7 +35,7 @@ public class ScheduledTasks {
|
||||
*/
|
||||
@Schedule(hour = "0", persistent = false)
|
||||
private void cleanupOldStatuses() {
|
||||
Date threshold = applicationSettingsService.get().getUnreadThreshold();
|
||||
Date threshold = applicationSettingsService.getUnreadThreshold();
|
||||
if (threshold != null) {
|
||||
cleaner.cleanStatusesOlderThan(threshold);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user