Skip to content

Commit

Permalink
fix: allocations geo filtering
Browse files Browse the repository at this point in the history
  • Loading branch information
stephanoshadjipetrou committed Jul 8, 2024
1 parent 4c8d71c commit da33989
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/controllers/allocations.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export class AllocationsController {
let filterString = filterFinancialIndicators(
this.req.query,
AllocationCumulativeByCyclesFieldsMapping.urlParams,
'geography/name',
['geography/name', 'geography/code'],
'activityArea/name',
);
const url = `${urls.FINANCIAL_INDICATORS}/${filterString}`;
Expand Down Expand Up @@ -189,7 +189,7 @@ export class AllocationsController {
const filterString = filterFinancialIndicators(
this.req.query,
AllocationSunburstFieldsMapping.urlParams,
'geography/name',
['geography/name', 'geography/code'],
'activityArea/name',
);
const url = `${urls.FINANCIAL_INDICATORS}/${filterString}`;
Expand Down Expand Up @@ -236,7 +236,7 @@ export class AllocationsController {
const filterString = filterFinancialIndicators(
this.req.query,
urlParams,
'geography/name',
['geography/name', 'geography/code'],
'activityArea/name',
);
const url = `${urls.FINANCIAL_INDICATORS}/${filterString}`;
Expand Down Expand Up @@ -310,7 +310,7 @@ export class AllocationsController {
const filterString = filterFinancialIndicators(
this.req.query,
AllocationTableFieldsMapping.urlParams,
'geography/name',
['geography/name', 'geography/code'],
'activityArea/name',
);
const url = `${urls.FINANCIAL_INDICATORS}/${filterString}`;
Expand Down Expand Up @@ -406,13 +406,13 @@ export class AllocationsController {
let filterString = filterFinancialIndicators(
this.req.query,
AllocationRadialFieldsMapping.urlParams,
'geography/name',
['geography/name', 'geography/code'],
'activityArea/name',
);
let filterString2 = filterFinancialIndicators(
this.req.query,
AllocationRadialFieldsMapping.countriesCountUrlParams,
'geography/name',
['geography/name', 'geography/code'],
'activityArea/name',
);
const url = `${urls.FINANCIAL_INDICATORS}/${filterString}`;
Expand Down

0 comments on commit da33989

Please sign in to comment.