Skip to content

Commit

Permalink
Add missing repo branches collection name (#897)
Browse files Browse the repository at this point in the history
  • Loading branch information
rayangler authored Aug 28, 2023
1 parent d521d48 commit d21b958
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cdk-infra/lib/constructs/api/webhook-env-construct.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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`);
Expand All @@ -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,
Expand Down

0 comments on commit d21b958

Please sign in to comment.