Skip to content

Commit

Permalink
fix: fix the env vars checking when creating a mongodb instance
Browse files Browse the repository at this point in the history
  • Loading branch information
joaopcm committed Mar 23, 2023
1 parent e528ae2 commit b7394d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/mongodb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ if (MONGODB_URI == null) {
throw new Error('Define the MONGODB_URI environmental variable')
}

if (!MONGODB_DB == null) {
if (MONGODB_DB == null) {
throw new Error('Define the MONGODB_DB environmental variable')
}

Expand Down

0 comments on commit b7394d9

Please sign in to comment.