mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 03:26:04 +01:00
fix: dont error if timestamp is missing
This commit is contained in:
@@ -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]);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user