Clean up code

This commit is contained in:
Paulo Gustavo Veiga 2022-02-17 17:36:46 -08:00
parent 1eab15f8f3
commit fad7442ffc

View File

@ -125,9 +125,8 @@ public class UserManagerImpl
template.delete(collaborator);
// Save all new...
user.setPassword(passwordEncoder.encode(user.getPassword()));
template.save(user);
newCollabs.forEach(c -> template.save(c));
this.createUser(user);
newCollabs.forEach(c -> template.saveOrUpdate(c));
return user;
}