diff --git a/server/api/index.js b/server/api/index.js index 5280acf..2b3a6b3 100644 --- a/server/api/index.js +++ b/server/api/index.js @@ -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, }; }); diff --git a/server/parser/index.js b/server/parser/index.js index aba5417..de715d9 100644 --- a/server/parser/index.js +++ b/server/parser/index.js @@ -135,6 +135,7 @@ export class Parser { type: change.type == "Entfall" ? "cancellation" : "change", lesson: parseInt(change.lesson), date: new Date(date), + notes: change.notes, change: { teacher: change.changedTeacher, room: change.room || undefined,