Skip to content

Commit

Permalink
fix: Only get summary if record is not deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielPalafox committed Jul 19, 2023
1 parent 39cc863 commit 61506ee
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -337,11 +337,12 @@ RecordSummary getSummaryRecord(@PathVariable("orcid") String orcid) {
return recordSummary;
}

recordSummary = getSummary(orcid);
if (isDeprecated) {
recordSummary.setEmploymentAffiliations(null);
recordSummary.setProfessionalActivities(null);
recordSummary.setExternalIdentifiers(null);
} else {
recordSummary = getSummary(orcid);
}

return recordSummary;
Expand Down

0 comments on commit 61506ee

Please sign in to comment.