Sfoglia il codice sorgente

run cleanup once a day

Daniel Bohry 1 mese fa
parent
commit
0d2d45815a

+ 1 - 1
src/main/java/com/lhamacorp/knotes/service/CleanupScheduler.java

@@ -17,7 +17,7 @@ public class CleanupScheduler {
 
     private final NoteRepository repository;
 
-    private static final String ONCE_PER_DAY_AT_2AM = "* * * * * *";
+    private static final String ONCE_PER_DAY_AT_2AM = "0 0 2 * * *";
     private static final Logger log = getLogger(CleanupScheduler.class);
 
     public CleanupScheduler(NoteRepository repository) {