Skip to content

Commit

Permalink
mongo file uri fix
Browse files Browse the repository at this point in the history
  • Loading branch information
shashankbrgowda committed May 2, 2024
1 parent 2d97a25 commit 47d5b9f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/apollo-collaboration-server/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ async function bootstrap() {
}
mongodbURI = fs.readFileSync(MONGODB_URI_FILE, 'utf8').trim()
}
console.log('mongodbURI', mongodbURI)

Check warning on line 58 in packages/apollo-collaboration-server/src/main.ts

View workflow job for this annotation

GitHub Actions / Lint

Unexpected console statement

let sessionSecret = SESSION_SECRET
if (!sessionSecret) {
Expand Down Expand Up @@ -109,7 +110,7 @@ async function bootstrap() {
// Add/update checks if needed
const checksMap: Map<string, Check> = checkRegistry.getChecks()
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
await mongoose.connect(MONGODB_URI!, {})
await mongoose.connect(mongodbURI, {})
const ChecksModel = mongoose.model('checks', CheckSchema)
for (const [key, check] of checksMap.entries()) {
const checkByName = await ChecksModel.find({ name: key }).exec()
Expand Down

0 comments on commit 47d5b9f

Please sign in to comment.