fix: dont error if timestamp is missing

This commit is contained in:
Barış Soner Uşaklı
2023-07-18 16:46:20 -04:00
parent 3613d1e623
commit 6cc86b6eaf

View File

@@ -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]);
}
});