Skip to content

Commit

Permalink
DOP-4599 logging
Browse files Browse the repository at this point in the history
  • Loading branch information
anabellabuckvar committed May 10, 2024
1 parent 551c9c8 commit c0e5341
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion api/controllers/v1/slack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export const DisplayRepoOptions = async (event: APIGatewayEvent): Promise<APIGat
//add checks for all of these things existing
for (const repo of repos) {
const projectEntry = await projectsRepository.getProjectEntry(repo.project);
console.log(JSON.stringify(projectEntry), repo.project);
console.log(projectEntry, repo.project);
const repoOwner = projectEntry?.github?.organization;
entitledRepos.push(`${'mongodb'}/${repo.repoName}`);
}
Expand Down
1 change: 1 addition & 0 deletions src/repositories/baseRepository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export abstract class BaseRepository {
this._config = config;
this._repoName = repoName;
this._collection = collection;
console.log(collection);
}

private promiseTimeoutS(seconds, promise, errMsg) {
Expand Down
2 changes: 1 addition & 1 deletion src/repositories/projectsRepository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,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(process.env.PROJECTS_COL_NAME || 'projects'));
super(config, logger, 'ProjectsRepository', db.collection('projects'));
}

async getProjectEntry(name: string): Promise<mongodb.WithId<mongodb.BSON.Document> | null> {
Expand Down

0 comments on commit c0e5341

Please sign in to comment.