Skip to content

Commit

Permalink
Merge pull request #96 from kanton-bern/bugfix/HELLODATA-1812_distinc…
Browse files Browse the repository at this point in the history
…t_user_result_in_search

HELLODATA-1812 - unique user result in search
  • Loading branch information
wieczorslawo authored Nov 29, 2024
2 parents 5a74b10 + 7e337b5 commit 7aa8feb
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,11 @@ public List<AdUserDto> searchUser(String email) {
if (email == null || email.length() < 3) {
return new ArrayList<>();
}
return userLookupProviderManager.searchUserByEmail(email);
return userLookupProviderManager.searchUserByEmail(email)
.stream()
.collect(Collectors.toCollection(LinkedHashSet::new))
.stream()
.collect(Collectors.toList());
}

@Transactional(readOnly = true)
Expand Down

0 comments on commit 7aa8feb

Please sign in to comment.