mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-01 21:30:30 +01:00
fix: one more fix
This commit is contained in:
@@ -25,7 +25,6 @@ module.exports = {
|
||||
const roomData = arrayOfRoomData[idx];
|
||||
if (roomData) {
|
||||
const userCount = await db.sortedSetCard(`chat:room:${roomId}:uids`);
|
||||
await db.setObjectField(`chat:room:${roomId}`, 'userCount', userCount);
|
||||
progress.total += userCount;
|
||||
}
|
||||
}));
|
||||
@@ -78,6 +77,8 @@ module.exports = {
|
||||
}, {
|
||||
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