diff --git a/src/upgrades/3.3.0/chat_room_refactor.js b/src/upgrades/3.3.0/chat_room_refactor.js index 252484d18f..97fe6d6287 100644 --- a/src/upgrades/3.3.0/chat_room_refactor.js +++ b/src/upgrades/3.3.0/chat_room_refactor.js @@ -33,7 +33,7 @@ module.exports = { const arrayOfRoomData = await db.getObjects(roomIds.map(roomId => `chat:room:${roomId}`)); for (const roomData of arrayOfRoomData) { if (roomData) { - const midsSeen = Object.create(null); + const midsSeen = {}; const { roomId } = roomData; await batch.processSortedSet(`chat:room:${roomId}:uids`, async (uids) => { for (const uid of uids) {