mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00:00
cron: run cleanupEvents on startup
This commit is contained in:
parent
a69b7f54f8
commit
f2ccb5254e
1 changed files with 3 additions and 1 deletions
|
|
@ -11,7 +11,9 @@ async function cleanupEvents() {
|
||||||
local: false,
|
local: false,
|
||||||
}]);
|
}]);
|
||||||
|
|
||||||
console.log(`Deleted ${result?.numDeletedRows ?? 0} events.`);
|
console.log(`Cleaned up ${result?.numDeletedRows ?? 0} old remote events.`);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
await cleanupEvents();
|
||||||
|
|
||||||
cron.every15Minute(cleanupEvents);
|
cron.every15Minute(cleanupEvents);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue