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); }