mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-03 20:45:58 +01:00
fix: dont error if timestamp is missing
This commit is contained in:
@@ -21,7 +21,7 @@ module.exports = {
|
|||||||
|
|
||||||
const bulkAdd = [];
|
const bulkAdd = [];
|
||||||
roomData.forEach((room) => {
|
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]);
|
bulkAdd.push([`chat:room:${room.roomId}:owners`, room.timestamp, room.owner]);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user