🐛 Fix notes not being displayed
This commit is contained in:
@ -72,6 +72,7 @@ export async function getSubstitutions(req, res) {
|
||||
type: element.type,
|
||||
lesson: element.lesson,
|
||||
date: new Date(element.date).getTime(),
|
||||
notes: element.notes,
|
||||
change: {},
|
||||
};
|
||||
if (element.changedRoom) substitution.change.room = element.changedRoom;
|
||||
@ -131,6 +132,7 @@ export async function getHistory(req, res) {
|
||||
updatedAt: new Date(element.createdAt).getTime(),
|
||||
date: new Date(element.substitution.date).getTime(),
|
||||
change: element.changes,
|
||||
notes: element.notes,
|
||||
parseEventId: element.parseEventId,
|
||||
};
|
||||
});
|
||||
|
Reference in New Issue
Block a user