Skip to content

Commit

Permalink
DOP-4414 testing env vars
Browse files Browse the repository at this point in the history
  • Loading branch information
anabellabuckvar committed Mar 25, 2024
1 parent 7a85e8b commit aaf71e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/repositories/projectsRepository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<mongodb.WithId<mongodb.BSON.Document> | null> {
Expand Down

0 comments on commit aaf71e9

Please sign in to comment.