From 983153fbba09bd482f5541c54a3f864cac52036b Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Thu, 4 Apr 2024 13:14:40 -0400 Subject: [PATCH] fix: lol --- src/upgrades/4.0.0/remote_user_urls.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/upgrades/4.0.0/remote_user_urls.js b/src/upgrades/4.0.0/remote_user_urls.js index 1ae2644d90..9a9aa8b8a3 100644 --- a/src/upgrades/4.0.0/remote_user_urls.js +++ b/src/upgrades/4.0.0/remote_user_urls.js @@ -16,7 +16,7 @@ module.exports = { let actorIds = await db.getSortedSetMembers('usersRemote:lastCrawled'); progress.total = actorIds.length; const exists = await Promise.all(actorIds.map(async id => await db.isObjectField(`userRemote:${id}`, 'url'))); - actorIds = actorIds.filter((id, idx) => exists[idx]); + actorIds = actorIds.filter((id, idx) => !exists[idx]); // Increment ones that were already completed progress.incr(progress.total - actorIds.length);