Skip to content

Commit

Permalink
chore: use DB_NAME
Browse files Browse the repository at this point in the history
  • Loading branch information
pociej committed Apr 8, 2024
1 parent aca8897 commit 6485d00
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion backend/src/di.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,9 @@ container.register({
container.register({
db: awilix
.asFunction((connectionString) => {
return mongoose.connect(connectionString);
return mongoose.connect(connectionString, {
dbName: process.env.DB_NAME,
});
})
.singleton(),
});
Expand Down

0 comments on commit 6485d00

Please sign in to comment.