fix: user & person save

This commit is contained in:
effe 2024-09-13 14:37:26 -04:00
parent 7deec14a11
commit dc95b06c6e

View file

@ -93,6 +93,7 @@ public class UserService {
userToSave.setEmail(user.getEmail()); userToSave.setEmail(user.getEmail());
userToSave.setUsername(user.getUsername()); userToSave.setUsername(user.getUsername());
userToSave.setPassword(user.getPassword()); userToSave.setPassword(user.getPassword());
userToSave.setRoles(user.getRoles());
} else { } else {
// If user does not exist, save the new user entity // If user does not exist, save the new user entity
userToSave = user; userToSave = user;