Skip to content

Commit

Permalink
fix issues
Browse files Browse the repository at this point in the history
  • Loading branch information
auumgn committed Nov 20, 2024
1 parent 8ff4ba5 commit 45e30b4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,8 @@ public Person getPersonDetails(String orcid) {
if (emails.getEmails() != null) {
Emails filteredEmails = new Emails();
filteredEmails.setEmails(new ArrayList<Email>(emails.getEmails().stream().filter(e -> e.isVerified()).collect(Collectors.toList())));
person.setEmails(processProfessionalEmails(filteredEmails));
processProfessionalEmails(filteredEmails);
person.setEmails(filteredEmails);
}
return person;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,8 @@ public Person getPersonDetails(String orcid, boolean includeUnverifiedEmails) {
} else {
filteredEmails.setEmails(new ArrayList<Email>(emails.getEmails().stream().filter(e -> e.isVerified()).collect(Collectors.toList())));
}
person.setEmails(processProfessionalEmails(filteredEmails));
processProfessionalEmails(filteredEmails);
person.setEmails(filteredEmails);
}
return person;
}
Expand Down

0 comments on commit 45e30b4

Please sign in to comment.