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> {