Node.js based forum software built for the modern web
fix: one more fix
Barış Soner Uşaklı51587ca3b289
diff --git a/src/upgrades/3.3.0/chat_room_refactor.js b/src/upgrades/3.3.0/chat_room_refactor.jsindex 9b4f6a4096..fbf54418c3 100644--- a/src/upgrades/3.3.0/chat_room_refactor.js+++ b/src/upgrades/3.3.0/chat_room_refactor.js@@ -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);}}}, {