fix: one more fix

isekai-main
Barış Soner Uşaklı 1 year ago
parent b5d1e9176b
commit 51587ca3b2

@ -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);
} }
} }
}, { }, {

Loading…
Cancel
Save