mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-05-07 02:27:22 +02:00
fix: analytics job
This commit is contained in:
@@ -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));
|
||||
});
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user