From 389f18b0d8ffed972922aea54e4889a33b4a2637 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20St=C3=B6hr?= Date: Thu, 28 Nov 2024 12:49:06 +0100 Subject: [PATCH] Merge --- .../atlas/service/learningpath/LearningPathService.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/de/tum/cit/aet/artemis/atlas/service/learningpath/LearningPathService.java b/src/main/java/de/tum/cit/aet/artemis/atlas/service/learningpath/LearningPathService.java index b553779e29ad..8048d2c04ab8 100644 --- a/src/main/java/de/tum/cit/aet/artemis/atlas/service/learningpath/LearningPathService.java +++ b/src/main/java/de/tum/cit/aet/artemis/atlas/service/learningpath/LearningPathService.java @@ -118,7 +118,7 @@ public LearningPathService(UserRepository userRepository, LearningPathRepository */ public void enableLearningPathsForCourse(@NotNull Course course) { course.setLearningPathsEnabled(true); - var students = userRepository.getStudentsWithLearnerProfile(course); + Set students = userRepository.getStudentsWithLearnerProfile(course); courseLearnerProfileService.createCourseLearnerProfiles(course, students); generateLearningPaths(course, students); courseRepository.save(course); @@ -131,7 +131,7 @@ public void enableLearningPathsForCourse(@NotNull Course course) { * @param course course the learning paths are created for */ public void generateLearningPaths(@NotNull Course course) { - var students = userRepository.getStudentsWithLearnerProfile(course); + Set students = userRepository.getStudentsWithLearnerProfile(course); generateLearningPaths(course, students); }