File tree Expand file tree Collapse file tree 4 files changed +3
-4
lines changed
server/src/main/java/com/studybuddies/server Expand file tree Collapse file tree 4 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 1919import java .util .Optional ;
2020import java .util .UUID ;
2121import java .util .stream .Collectors ;
22- import java .util .stream .StreamSupport ;
2322import lombok .AllArgsConstructor ;
2423import org .apache .commons .lang3 .NotImplementedException ;
2524import org .springframework .stereotype .Service ;
@@ -88,7 +87,7 @@ public boolean existsByUUID(UUID uuid) {
8887
8988 @ Transactional
9089 public void updateModules (ModuleUpdateRequest moduleUpdateRequest , String uuid ) {
91- List <String > modules = moduleUpdateRequest .getModuleNames ();
90+ List <String > modules = moduleUpdateRequest .getName ();
9291
9392 var foundModules = modules .stream ()
9493 .filter (moduleValidationService ::exists )
Original file line number Diff line number Diff line change 55
66@ Getter
77public class ModuleUpdateRequest {
8- public List <String > moduleNames ;
8+ public List <String > name ;
99}
Original file line number Diff line number Diff line change @@ -14,6 +14,6 @@ public interface UserMapper {
1414
1515 @ Mapping (source = "uuid" , target = "uuid" )
1616 @ Mapping (source = "username" , target = "username" )
17- @ Mapping (source = "modules " , target = "modules " )
17+ @ Mapping (source = "name " , target = "name " )
1818 UserResponse of (UserEntity userEntity );
1919}
You can’t perform that action at this time.
0 commit comments