Skip to content

Node.js based forum software built for the modern web

fix: dont error if timestamp is missing

Barış Soner Uşaklı6cc86b6eaf22
diff --git a/src/upgrades/3.3.0/chat_room_owners.js b/src/upgrades/3.3.0/chat_room_owners.js
index ddb4af3865..7d608af9d4 100644
--- a/src/upgrades/3.3.0/chat_room_owners.js
+++ b/src/upgrades/3.3.0/chat_room_owners.js
@@ -21,7 +21,7 @@ module.exports = {
const bulkAdd = [];
roomData.forEach((room) => {
- if (room && room.roomId && room.owner) {
+ if (room && room.roomId && room.owner && room.timestamp) {
bulkAdd.push([`chat:room:${room.roomId}:owners`, room.timestamp, room.owner]);
}
});