Skip to content

Commit

Permalink
fix: RootParent getOriginId on notification
Browse files Browse the repository at this point in the history
  • Loading branch information
andrea-putzu committed Aug 26, 2024
1 parent d20cf0d commit dab1686
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ public InstitutionToNotify retrieveInstitution(InstitutionResponse institution)
if (Objects.nonNull(institution.getRootParent())) {
rootParent.setId(institution.getRootParent().getId());
rootParent.setDescription(institution.getRootParent().getDescription());
InstitutionResponse parentInstitution = coreInstitutionApi.retrieveInstitutionByIdUsingGET(institution.getId());
InstitutionResponse parentInstitution = coreInstitutionApi.retrieveInstitutionByIdUsingGET(rootParent.getId());
rootParent.setOriginId(Objects.nonNull(parentInstitution) ? parentInstitution.getOriginId() : null);
toNotify.setRootParent(rootParent);
}
Expand Down

0 comments on commit dab1686

Please sign in to comment.