Skip to content

Commit

Permalink
fix(mongodb-example): remove unneeded useUnifiedTopology parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
pichlermarc committed Dec 20, 2023
1 parent 7845a6b commit bf19f7b
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@ export function accessDB(
): Promise<mongodb.Db> {
return new Promise((resolve, reject) => {
mongodb.MongoClient.connect(url, {
serverSelectionTimeoutMS: 1000,
useUnifiedTopology: true
serverSelectionTimeoutMS: 1000
})
.then(client => {
resolve(client.db(dbName));
Expand Down

0 comments on commit bf19f7b

Please sign in to comment.