Skip to content

Commit

Permalink
DOP-4599 undo env var change
Browse files Browse the repository at this point in the history
  • Loading branch information
anabellabuckvar committed May 20, 2024
1 parent de648ad commit 929f904
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion api/controllers/v1/slack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ export const DisplayRepoOptions = async (event: APIGatewayEvent): Promise<APIGat
const client = new mongodb.MongoClient(c.get('dbUrl'));
await client.connect();
const db = client.db(process.env.DB_NAME);
const projectsRepository = new ProjectsRepository(client.db(process.env.METADATA_DB_NAME), c, consoleLogger);
//change this to get db from env vars
const projectsRepository = new ProjectsRepository(client.db('docs_metadata'), c, consoleLogger);
const repoEntitlementRepository = new RepoEntitlementsRepository(db, c, consoleLogger);
const repoBranchesRepository = new RepoBranchesRepository(db, c, consoleLogger);
const key_val = getQSString(event.body);
Expand Down

0 comments on commit 929f904

Please sign in to comment.