mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-02-26 16:41:21 +01:00
fix: lol
This commit is contained in:
@@ -16,7 +16,7 @@ module.exports = {
|
|||||||
let actorIds = await db.getSortedSetMembers('usersRemote:lastCrawled');
|
let actorIds = await db.getSortedSetMembers('usersRemote:lastCrawled');
|
||||||
progress.total = actorIds.length;
|
progress.total = actorIds.length;
|
||||||
const exists = await Promise.all(actorIds.map(async id => await db.isObjectField(`userRemote:${id}`, 'url')));
|
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
|
// Increment ones that were already completed
|
||||||
progress.incr(progress.total - actorIds.length);
|
progress.incr(progress.total - actorIds.length);
|
||||||
|
|||||||
Reference in New Issue
Block a user