diff --git a/apps/server-doj/src/index.ts b/apps/server-doj/src/index.ts index 708f6efa..edca57e5 100644 --- a/apps/server-doj/src/index.ts +++ b/apps/server-doj/src/index.ts @@ -9,7 +9,7 @@ const getCloudGovServerSecrets = () => { const services = JSON.parse(process.env.VCAP_SERVICES || '{}'); return { //loginGovClientSecret: services['user-provided']?.credentials?.SECRET_LOGIN_GOV_PRIVATE_KEY, - dbUri: services['aws-rds'].credentials.uri as string, + dbUri: services['aws-rds'][0].credentials.uri as string, }; }; diff --git a/apps/server-kansas/src/index.ts b/apps/server-kansas/src/index.ts index 708f6efa..edca57e5 100644 --- a/apps/server-kansas/src/index.ts +++ b/apps/server-kansas/src/index.ts @@ -9,7 +9,7 @@ const getCloudGovServerSecrets = () => { const services = JSON.parse(process.env.VCAP_SERVICES || '{}'); return { //loginGovClientSecret: services['user-provided']?.credentials?.SECRET_LOGIN_GOV_PRIVATE_KEY, - dbUri: services['aws-rds'].credentials.uri as string, + dbUri: services['aws-rds'][0].credentials.uri as string, }; };