From 0178e025a426114e67408a01fc134a2b48bcf236 Mon Sep 17 00:00:00 2001 From: Mike Heneghan Date: Fri, 26 Jan 2024 15:36:35 +0000 Subject: [PATCH] fix: logical error with assigning gov pay secret --- infrastructure/application/utils/generateTeamSecrets.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/infrastructure/application/utils/generateTeamSecrets.ts b/infrastructure/application/utils/generateTeamSecrets.ts index 7bb906cc51..0918a88850 100644 --- a/infrastructure/application/utils/generateTeamSecrets.ts +++ b/infrastructure/application/utils/generateTeamSecrets.ts @@ -25,7 +25,7 @@ export const generateTeamSecrets = ( ): awsx.ecs.KeyValuePair[] => { const secrets: awsx.ecs.KeyValuePair[] = []; teams.forEach((team) => { - if (team?.govPayStagingOnly && env !== "production") { + if ((team?.govPayStagingOnly && env !== "production") || !team?.govPayStagingOnly) { secrets.push({ name: `GOV_UK_PAY_TOKEN_${name(team.name)}`, value: