Skip to content

Commit

Permalink
HELLODATA-1812 - unique user result in search (use hashcode)
Browse files Browse the repository at this point in the history
  • Loading branch information
Slawomir Wieczorek committed Nov 20, 2024
1 parent e9e879a commit 7e337b5
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -401,8 +401,7 @@ public List<AdUserDto> searchUser(String email) {
}
return userLookupProviderManager.searchUserByEmail(email)
.stream()
.collect(Collectors.toMap(AdUserDto::getEmail, user -> user, (existing, replacement) -> existing))
.values()
.collect(Collectors.toCollection(LinkedHashSet::new))
.stream()
.collect(Collectors.toList());
}
Expand Down

0 comments on commit 7e337b5

Please sign in to comment.