Skip to content

Commit

Permalink
Merge
Browse files Browse the repository at this point in the history
  • Loading branch information
JohannesStoehr committed Nov 28, 2024
1 parent 3077ca6 commit 389f18b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ public LearningPathService(UserRepository userRepository, LearningPathRepository
*/
public void enableLearningPathsForCourse(@NotNull Course course) {
course.setLearningPathsEnabled(true);
var students = userRepository.getStudentsWithLearnerProfile(course);
Set<User> students = userRepository.getStudentsWithLearnerProfile(course);
courseLearnerProfileService.createCourseLearnerProfiles(course, students);
generateLearningPaths(course, students);
courseRepository.save(course);
Expand All @@ -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<User> students = userRepository.getStudentsWithLearnerProfile(course);
generateLearningPaths(course, students);
}

Expand Down

0 comments on commit 389f18b

Please sign in to comment.