Skip to content

Commit

Permalink
Fix: User-registry return method have the same methods as in User ret…
Browse files Browse the repository at this point in the history
…urn method
  • Loading branch information
AdrianBalunan committed Apr 7, 2026
1 parent a9aad5b commit abc92c0
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,11 @@ public UserRegistry getUsersFromDB(){
rs.getString("user_password"),
rs.getString("role")
);
registry.addUser(user);
Settings settings = getSettingsForUser(user.getId().toString());
user.setSettings(settings);

Inbox inbox = getInboxForUser(user.getId().toString());
user.setInbox(inbox);
}
} catch (SQLException e) {
e.printStackTrace();
Expand Down Expand Up @@ -483,7 +487,7 @@ public User getUserFromDBUuid(UUID uuid){
user.setSettings(settings);

Inbox inbox = getInboxForUser(user.getId().toString());
user.setSettings(settings);
user.setInbox(inbox);
}
} catch (SQLException e) {
e.printStackTrace();
Expand Down

0 comments on commit abc92c0

Please sign in to comment.