From 9a981145de346c4c940a67608e148a28a3a263d0 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Wed, 8 Apr 2026 11:32:49 -0400 Subject: [PATCH] fix: analytics job --- src/activitypub/jobs.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/activitypub/jobs.js b/src/activitypub/jobs.js index 4eac139347..8c4f83c5a8 100644 --- a/src/activitypub/jobs.js +++ b/src/activitypub/jobs.js @@ -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)); }); }, });