Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ public List<PublicUserInfo> findPublicUserInfos(List<UUID> ids) {
* @return an optional of the public user info or empty if the user could not be retrieved.
*/
public Optional<PublicUserInfo> findPublicUserInfo(UUID id) {
return findUser(id).map(user -> new PublicUserInfo(id, user.getUsername()));
String nickname = userRepository.findById(id).map(UserEntity::getNickname).orElse("");
return findUser(id).map(user -> new PublicUserInfo(id, user.getUsername(), nickname));
}

/**
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/graphql/service/userInfo.graphqls
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
type PublicUserInfo {
id: UUID!
userName: String!
nickname: String!
}
enum GlobalUserRole {
SUPER_USER,
Expand Down
Loading