🐛 Fix missing data on deletion event

This commit is contained in:
2022-05-04 14:33:52 +02:00
parent 7a97aed12e
commit a04c7c627d

View File

@ -197,7 +197,18 @@ export class Parser {
data: {
substitutionId: remainingSubstitution.id,
type: "deletion",
changes: {},
changes: {
class: remainingSubstitution.class,
type: remainingSubstitution.type,
lesson: remainingSubstitution.lesson,
date: remainingSubstitution.date.getTime(),
notes: remainingSubstitution.notes,
change: {
teacher: remainingSubstitution.changedTeacher,
room: remainingSubstitution.changedRoom,
subject: remainingSubstitution.changedSubject,
},
},
parseEventId: parseEvent.id,
},
});