fix(schedule): calendar
This commit is contained in:
@ -427,14 +427,16 @@ export class ScheduleModel {
|
||||
}
|
||||
}
|
||||
|
||||
for (const room of rooms) {
|
||||
const roomEvents = allEvents.filter((event) => event.room_id === room.id);
|
||||
room.events = roomEvents;
|
||||
}
|
||||
|
||||
return {
|
||||
count: rooms.length,
|
||||
page: page,
|
||||
total_count: roomTotalCount,
|
||||
list: {
|
||||
rooms: rooms,
|
||||
events: allEvents,
|
||||
}
|
||||
list: rooms,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user