mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-02-05 22:30:07 +01:00
fix: one more fix
This commit is contained in:
@@ -25,7 +25,6 @@ module.exports = {
|
|||||||
const roomData = arrayOfRoomData[idx];
|
const roomData = arrayOfRoomData[idx];
|
||||||
if (roomData) {
|
if (roomData) {
|
||||||
const userCount = await db.sortedSetCard(`chat:room:${roomId}:uids`);
|
const userCount = await db.sortedSetCard(`chat:room:${roomId}:uids`);
|
||||||
await db.setObjectField(`chat:room:${roomId}`, 'userCount', userCount);
|
|
||||||
progress.total += userCount;
|
progress.total += userCount;
|
||||||
}
|
}
|
||||||
}));
|
}));
|
||||||
@@ -78,6 +77,8 @@ module.exports = {
|
|||||||
}, {
|
}, {
|
||||||
batch: 500,
|
batch: 500,
|
||||||
});
|
});
|
||||||
|
const userCount = await db.sortedSetCard(`chat:room:${roomId}:uids`);
|
||||||
|
await db.setObjectField(`chat:room:${roomId}`, 'userCount', userCount);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}, {
|
}, {
|
||||||
|
|||||||
Reference in New Issue
Block a user