Skip to content

Commit

Permalink
feat: location endpoint return location is donor
Browse files Browse the repository at this point in the history
  • Loading branch information
stephanoshadjipetrou committed Jul 8, 2024
1 parent ae89a98 commit 6697d37
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/config/mapping/location/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"name": "[0].name",
"regionName": "[0].parent.name",
"level": "[0].level",
"isDonor": "[0].isDonor",
"countryLevel": "Country",
"multicountryLevel": "Multicountry",
"FPMSalutation": "[0].fundPortfolioManager.salutation",
Expand Down
1 change: 1 addition & 0 deletions src/controllers/location.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,7 @@ export class LocationController {
name: _.get(raw, LocationInfoMapping.name, ''),
region: _.get(raw, LocationInfoMapping.regionName, ''),
description: _.get(description, 'summary', ''),
isDonor: _.get(raw, LocationInfoMapping.isDonor, false),
FPMName: [
_.get(rawFPM, LocationInfoMapping.FPMSalutation, ''),
_.get(rawFPM, LocationInfoMapping.FPMFirstName, ''),
Expand Down

0 comments on commit 6697d37

Please sign in to comment.