From 69de44893c9e37a809cde350d404f60a14e5052b Mon Sep 17 00:00:00 2001 From: Sarah Vaupel Date: Mon, 12 Dec 2022 15:26:15 +0100 Subject: [PATCH] feat(course-users): set new tutorials to Schulung --- src/Handler/Course/ParticipantInvite.hs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Handler/Course/ParticipantInvite.hs b/src/Handler/Course/ParticipantInvite.hs index 93abaedc7..89af84835 100644 --- a/src/Handler/Course/ParticipantInvite.hs +++ b/src/Handler/Course/ParticipantInvite.hs @@ -266,7 +266,7 @@ upsertNewTutorial cid tutorialName = do Entity tutId _ <- runDB $ upsert Tutorial { tutorialCourse = cid - , tutorialType = CI.mk mempty -- TODO: remove type? unneeded? + , tutorialType = CI.mk "Schulung" , tutorialCapacity = Nothing , tutorialRoom = Nothing , tutorialRoomHidden = False @@ -280,6 +280,7 @@ upsertNewTutorial cid tutorialName = do , .. } [ TutorialName =. tutorialName + , TutorialType =. CI.mk "Schulung" , TutorialLastChanged =. now ] return tutId