eventlog: preserve last 2 months

This commit is contained in:
Girish Ramakrishnan
2022-10-01 11:01:41 +02:00
parent 92112986a7
commit c07fe4195f
+1 -1
View File
@@ -122,7 +122,7 @@ async function startJobs() {
gJobs.cleanupEventlog = new CronJob({
cronTime: '00 */30 * * * *', // every 30 minutes
onTick: async () => await safe(eventlog.cleanup({ creationTime: new Date(Date.now() - 60 * 60 * 24 * 10 * 1000) }), { debug }), // 10 days ago
onTick: async () => await safe(eventlog.cleanup({ creationTime: new Date(Date.now() - 60 * 60 * 24 * 60 * 1000) }), { debug }), // 60 days ago
start: true
});