From d21b95829b8a53900cec519492154088f680eee6 Mon Sep 17 00:00:00 2001 From: rayangler <27821750+rayangler@users.noreply.github.com> Date: Mon, 28 Aug 2023 10:47:39 -0400 Subject: [PATCH] Add missing repo branches collection name (#897) --- cdk-infra/lib/constructs/api/webhook-env-construct.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cdk-infra/lib/constructs/api/webhook-env-construct.ts b/cdk-infra/lib/constructs/api/webhook-env-construct.ts index 780ad9092..9ec5baf04 100644 --- a/cdk-infra/lib/constructs/api/webhook-env-construct.ts +++ b/cdk-infra/lib/constructs/api/webhook-env-construct.ts @@ -21,6 +21,7 @@ export class WebhookEnvConstruct extends Construct { const dbName = StringParameter.valueFromLookup(this, `${ssmPrefix}/atlas/dbname`); const snootyDbName = StringParameter.valueFromLookup(this, `${ssmPrefix}/atlas/collections/snooty`); + const repoBranchesCollection = StringParameter.valueFromLookup(this, `${ssmPrefix}/atlas/collections/repo`); const dbUsername = StringParameter.valueFromLookup(this, `${ssmPrefix}/atlas/username`); const dbHost = StringParameter.valueFromLookup(this, `${ssmPrefix}/atlas/host`); const jobCollection = StringParameter.valueFromLookup(this, `${ssmPrefix}/atlas/collections/job/queue`); @@ -37,6 +38,7 @@ export class WebhookEnvConstruct extends Construct { MONGO_ATLAS_URL: `mongodb+srv://${dbUsername}:${dbPassword}@${dbHost}/admin?retryWrites=true`, DB_NAME: dbName, SNOOTY_DB_NAME: snootyDbName, + REPO_BRANCHES_COL_NAME: repoBranchesCollection, JOB_QUEUE_COL_NAME: jobCollection, NODE_CONFIG_DIR: './config', JOBS_QUEUE_URL: jobsQueue.queueUrl,