Skip to content

Commit

Permalink
feat: change grant ip label to code
Browse files Browse the repository at this point in the history
  • Loading branch information
stephanoshadjipetrou committed Sep 19, 2024
1 parent ba393a0 commit 25b79af
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/config/mapping/grants/grant.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"implementationPeriodFrom": "periodFrom",
"implementationPeriodTo": "periodTo",
"implementationPeriodTitle": "title",
"implementationPeriodCode": "code",
"countryCode": "geography.code",
"countryName": "geography.name",
"principalRecipientId": "principalRecipient.id",
Expand Down
6 changes: 5 additions & 1 deletion src/controllers/grants.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,11 @@ export class GrantsController {
['asc'],
).map((p, index: number) => ({
code: index + 1,
name: `Implementation Period ${_.get(
name: `${_.get(
p,
GrantMapping.implementationPeriodCode,
'',
)} ${_.get(
p,
GrantMapping.implementationPeriodFrom,
'',
Expand Down

0 comments on commit 25b79af

Please sign in to comment.