From 51587ca3b289b66d479fcf1158728c5ff45196f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Fri, 18 Aug 2023 20:38:59 -0400 Subject: [PATCH] fix: one more fix --- src/upgrades/3.3.0/chat_room_refactor.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/upgrades/3.3.0/chat_room_refactor.js b/src/upgrades/3.3.0/chat_room_refactor.js index 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); } } }, {