Skip to content

Commit

Permalink
fix: logical error with assigning gov pay secret
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike-Heneghan committed Jan 26, 2024
1 parent 2bc7b7b commit 0161cef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion infrastructure/application/utils/generateTeamSecrets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 0161cef

Please sign in to comment.