fix: analytics job

This commit is contained in:
Julian Lam
2026-04-08 11:32:49 -04:00
parent 85cfcfa87b
commit 9a981145de

View File

@@ -72,7 +72,7 @@ Jobs.start = async () => {
onTick: async () => {
await tryCronJob(async () => {
// Delete entries older than 24h
await db.sortedSetsRemoveRangeByScore(['ap:errors', 0, Date.now() - (1000 * 60 * 60 * 24)]);
await db.sortedSetsRemoveRangeByScore(['ap:errors'], '-inf', Date.now() - (1000 * 60 * 60 * 24));
});
},
});