Skip to content

Commit

Permalink
Added the fix for incident (#1459)
Browse files Browse the repository at this point in the history
* Added the fix for incident

* removed the commented code
  • Loading branch information
priteshkr committed Nov 15, 2023
1 parent 034a3e9 commit fdf19d0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions charts/adoption-web/values.preview.template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ nodejs:
APPINSIGHTS_KEY: '00000000-0000-0000-0000-000000000000'
PCQ_ENABLED: 'true'
REDIS_TTL_MS: 30
CCD_URL: 'http://ccd-data-store-api-aat.service.core-compute-aat.internal'
CCD_URL: 'http://adoption-cos-api-pr-890-ccd-data-store-api'
IDAM_ROLE: 'citizen'
CDAM_API_URL: 'http://ccd-case-document-am-api-aat.service.core-compute-aat.internal'
CDAM_API_URL: 'http://adoption-cos-api-pr-890-ccd-case-document-am-api'
# Family Court List
LEICESTER_VAL: 'Leicester County Court'
STOKE-ON-TRENT_VAL: 'Stoke-on-Trent Combined Court'
Expand Down
5 changes: 2 additions & 3 deletions src/main/steps/children/find-family-court/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ export const getCourtEmailId = (key: string): string => {
['worcester', config.get('localCourt.emailId.WORCESTER_FAMILY_COURT')],
['newport', config.get('localCourt.emailId.NEWPORT_GWENT_FAMILY_COURT')],
['liverpool', config.get('localCourt.emailId.LIVERPOOL_FAMILY_COURT')],
['central london', config.get('localCourt.emailId.CENTRAL_LONDON_FAMILY_COURT')],
['reading', config.get('localCourt.emailId.READING_FAMILY_COURT')],
//Midlands
['stoke-on-trent', config.get('localCourt.emailId.STOKE-ON-TRENT_FAMILY_COURT')],
Expand Down Expand Up @@ -67,13 +66,13 @@ export const getCourtEmailId = (key: string): string => {
['haverfordwest', config.get('localCourt.emailId.HAVERFORDWEST_FAMILY_COURT')],
['llanelli', config.get('localCourt.emailId.LLANELLI_FAMILY_COURT')],
['pontypridd', config.get('localCourt.emailId.PONTYPRIDD_FAMILY_COURT')],
['port-talbot', config.get('localCourt.emailId.PORT_TALBOT_FAMILY_COURT')],
['port talbot', config.get('localCourt.emailId.PORT_TALBOT_FAMILY_COURT')],
['prestatyn', config.get('localCourt.emailId.PRESTATYN_FAMILY_COURT')],
['swansea', config.get('localCourt.emailId.SWANSEA_FAMILY_COURT')],
['wrexham', config.get('localCourt.emailId.WREXHAM_FAMILY_COURT')],
]);
//Creating array of arrays from map. Then filtering key from map based on input string.
const filteredElement = Array.from(map).filter(([mapKey]) => courtKey.includes(mapKey));
const filteredElement = Array.from(map).filter(([mapKey]) => courtKey.startsWith(mapKey));

//filtered element will contain a single array item something like [['liverpool','[email protected]' ]].
//Using index to get the email element.
Expand Down

0 comments on commit fdf19d0

Please sign in to comment.