Skip to content

Commit

Permalink
Modify to add roleName into userProfile payload.
Browse files Browse the repository at this point in the history
  • Loading branch information
totalnuob committed Nov 24, 2018
1 parent e46e79a commit 7fd0998
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ public AppUserProfile getUserProfile(@PathVariable(value = "username") String us
long voteCount = voteRepository.countByUserId(user.getId());

AppUserProfile userProfile = new AppUserProfile(user.getId(), user.getBytomId(), user.getUsername(), user.getName(),
user.getBalance(), user.getShortDescription(),
user.getDescription(), user.getFounded(), user.getWebsite(), user.getCity(), user.getCountry());
user.getBalance(), user.getShortDescription(), user.getDescription(), user.getFounded(),
user.getWebsite(), user.getCity(), user.getCountry(), user.getRoles().iterator().next().getName().name());

return userProfile;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,5 @@ public class AppUserProfile {
private String website;
private String city;
private String country;
private String roleName;
}

0 comments on commit 7fd0998

Please sign in to comment.