cron: run cleanupEvents on startup
This commit is contained in:
parent
a69b7f54f8
commit
f2ccb5254e
|
@ -11,7 +11,9 @@ async function cleanupEvents() {
|
|||
local: false,
|
||||
}]);
|
||||
|
||||
console.log(`Deleted ${result?.numDeletedRows ?? 0} events.`);
|
||||
console.log(`Cleaned up ${result?.numDeletedRows ?? 0} old remote events.`);
|
||||
}
|
||||
|
||||
await cleanupEvents();
|
||||
|
||||
cron.every15Minute(cleanupEvents);
|
||||
|
|
Loading…
Reference in New Issue