From a04c7c627ddcaab65bf44cb94dd3880936fc7a94 Mon Sep 17 00:00:00 2001 From: minie4 Date: Wed, 4 May 2022 14:33:52 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20missing=20data=20on=20dele?= =?UTF-8?q?tion=20event?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/parser/index.js | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/server/parser/index.js b/server/parser/index.js index 6591696..aba5417 100644 --- a/server/parser/index.js +++ b/server/parser/index.js @@ -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, }, });