fix: dont error if timestamp is missing

isekai-main
Barış Soner Uşaklı 2 years ago
parent 3613d1e623
commit 6cc86b6eaf

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

Loading…
Cancel
Save