link front and back part 1

This commit is contained in:
2024-04-09 14:01:23 +02:00
parent aa3e1cb868
commit 142ea996d8
4 changed files with 31 additions and 80 deletions

View File

@ -81,6 +81,7 @@ public class ProtectionService {
toReturn.put("lessonEnd", lesson.getLessonEnd());
toReturn.put("course",courseWithoutPassword(lesson.getCourse()));
toReturn.put("local",lesson.getLocal());
toReturn.put("color", lesson.getColor());
return toReturn;
}

View File

@ -44,6 +44,7 @@ public class ScheduleLessonService {
}
toReturn.put("lessons",lessons);
toReturn.put("scheduleId" , scheduleLessonRepo.findScheduleByCurriculum(curriculum).getScheduleID());
toReturn.put("curriculum", curriculum);
return toReturn;
}
@ -60,6 +61,7 @@ public class ScheduleLessonService {
}
toReturn.put("lessons",lessons);
toReturn.put("scheduleId" , schedule.getScheduleID());
toReturn.put("curriculum", schedule.getCurriculum());
return toReturn;
}