Skip to content

Commit

Permalink
Fix compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
JohannesStoehr committed Dec 6, 2024
1 parent 2a9cf48 commit c25e76e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1060,18 +1060,17 @@ public void addUserToGroup(User user, String group, Course course) {
if (group.equals(course.getStudentGroupName()) && course.getLearningPathsEnabled()) {
Course courseWithCompetencies = courseRepository.findWithEagerCompetenciesAndPrerequisitesByIdElseThrow(course.getId());
courseLearnerProfileService.createCourseLearnerProfile(course, user);
learningPathService.generateLearningPathForUser(courseWithCompetencies, user);
learningPathApi.generateLearningPathForUser(courseWithCompetencies, user);
}
}

/**
* removes a given user to a user group
*
* @param user user to be removed from a group
* @param group user-group where the user should be removed
* @param course the course in which the user should be removed
* @param user user to be removed from a group
* @param group user-group where the user should be removed
*/
public void removeUserFromGroup(User user, String group, Course course) {
public void removeUserFromGroup(User user, String group) {
userService.removeUserFromGroup(user, group);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1334,7 +1334,7 @@ public ResponseEntity<Void> removeUserFromCourseGroup(String userLogin, User ins
if (userToRemoveFromGroup.isEmpty()) {
throw new EntityNotFoundException("User", userLogin);
}
courseService.removeUserFromGroup(userToRemoveFromGroup.get(), group, course);
courseService.removeUserFromGroup(userToRemoveFromGroup.get(), group);
return ResponseEntity.ok().body(null);
}

Expand Down

0 comments on commit c25e76e

Please sign in to comment.