Skip to content

Commit

Permalink
Merge pull request #116 from onaio/sync-location-hotfix
Browse files Browse the repository at this point in the history
Fix sync by Location bug on Main
  • Loading branch information
ndegwamartin authored Jan 24, 2025
2 parents 3e4502f + c2c4007 commit d38a787
Showing 1 changed file with 10 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -347,9 +347,16 @@ private Map<String, List<String>> collateSyncStrategyIds(
practitionerDetails != null
&& practitionerDetails.getFhirPractitionerDetails() != null
? PractitionerDetailsEndpointHelper.getAttributedLocations(
practitionerDetails
.getFhirPractitionerDetails()
.getLocationHierarchyList())
PractitionerDetailsEndpointHelper.getLocationsHierarchy(
practitionerDetails
.getFhirPractitionerDetails()
.getLocations()
.stream()
.map(
location ->
location.getIdElement()
.getIdPart())
.collect(Collectors.toList())))
: new HashSet<>();

} else if (Constants.SyncStrategy.RELATED_ENTITY_LOCATION.equalsIgnoreCase(
Expand Down

0 comments on commit d38a787

Please sign in to comment.