From 9aab04d4d264ce05609a5987ae0619cf4d48d2fd Mon Sep 17 00:00:00 2001 From: minie4 Date: Fri, 23 Jun 2023 17:30:56 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20Include=20class=20in=20history=20ap?= =?UTF-8?q?i=20response?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/api/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/server/api/index.js b/server/api/index.js index 89eab7f..8276aaf 100644 --- a/server/api/index.js +++ b/server/api/index.js @@ -231,6 +231,7 @@ export async function getHistory(req, res) { return { id: element.id, type: element.type, + class: element.substitution.class, substitutionId: element.substitutionId, lesson: element.substitution.lesson, updatedAt: new Date(element.createdAt).getTime(),