eventlog: typo in cleanup
This commit is contained in:
@@ -101,7 +101,7 @@ function startJobs(callback) {
|
|||||||
|
|
||||||
gJobs.cleanupEventlog = new CronJob({
|
gJobs.cleanupEventlog = new CronJob({
|
||||||
cronTime: '00 */30 * * * *', // every 30 minutes
|
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
|
start: true
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user