From aaf71e9520fc46d4e7baa0ae3d9f83f3d7fe6acd Mon Sep 17 00:00:00 2001 From: anabellabuckvar <41971124+anabellabuckvar@users.noreply.github.com> Date: Mon, 25 Mar 2024 12:03:32 -0400 Subject: [PATCH] DOP-4414 testing env vars --- src/repositories/projectsRepository.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/repositories/projectsRepository.ts b/src/repositories/projectsRepository.ts index 0e3e0df0d..475a9981d 100644 --- a/src/repositories/projectsRepository.ts +++ b/src/repositories/projectsRepository.ts @@ -9,7 +9,7 @@ import { ILogger } from '../services/logger'; export class ProjectsRepository extends BaseRepository { constructor(db: mongodb.Db, config: IConfig, logger: ILogger) { - super(config, logger, 'ProjectsRepository', db.collection(config.get('projectsCollection'))); + super(config, logger, 'ProjectsRepository', db.collection(process.env.PROJECTS_COL_NAME || '')); } async getProjectEntry(name: string): Promise | null> {