From eafd72b4e7ad8bc5de65a0a070ac4e2c8428b8d2 Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Sat, 10 Jul 2021 10:53:21 -0700 Subject: [PATCH] eventlog: typo in cleanup --- src/cron.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cron.js b/src/cron.js index cbea5eed5..68a3be184 100644 --- a/src/cron.js +++ b/src/cron.js @@ -101,7 +101,7 @@ function startJobs(callback) { gJobs.cleanupEventlog = new CronJob({ cronTime: '00 */30 * * * *', // every 30 minutes - onTick: eventlog.cleanup.bind(null, new Date(Date.now() - 60 * 60 * 24 * 10 * 1000)), // 10 days ago + onTick: eventlog.cleanup.bind(null, { creationTime: new Date(Date.now() - 60 * 60 * 24 * 10 * 1000) }), // 10 days ago start: true });