mirror of
https://github.com/aljazceru/ditto.git
synced 2026-02-18 03:34:20 +01:00
cron: run cleanupEvents on startup
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user