From dc95b06c6ea22c80ebd6759433d1c3181fac9126 Mon Sep 17 00:00:00 2001 From: effe Date: Fri, 13 Sep 2024 14:37:26 -0400 Subject: [PATCH] fix: user & person save --- src/main/java/com/application/munera/services/UserService.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/com/application/munera/services/UserService.java b/src/main/java/com/application/munera/services/UserService.java index a313ab2..459c4cc 100644 --- a/src/main/java/com/application/munera/services/UserService.java +++ b/src/main/java/com/application/munera/services/UserService.java @@ -93,6 +93,7 @@ public class UserService { userToSave.setEmail(user.getEmail()); userToSave.setUsername(user.getUsername()); userToSave.setPassword(user.getPassword()); + userToSave.setRoles(user.getRoles()); } else { // If user does not exist, save the new user entity userToSave = user;