From a9f839ff2e44b088a88b330d5ff95c1c9a4ac33c Mon Sep 17 00:00:00 2001 From: Amia33 <137411471+Amia33@users.noreply.github.com> Date: Wed, 20 Nov 2024 11:46:51 +0800 Subject: [PATCH] Remove unused params for mongouri --- db/mongodb.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/db/mongodb.js b/db/mongodb.js index a154b9a..2c65721 100644 --- a/db/mongodb.js +++ b/db/mongodb.js @@ -13,11 +13,7 @@ const schema = new mongoose.Schema( // the default mongodb url (local server) const mongodbURL = process.env.DB_URL || "mongodb://127.0.0.1:27017"; -mongoose.connect(mongodbURL, { - useNewUrlParser: true, - useUnifiedTopology: true, - useFindAndModify: false, -}); +mongoose.connect(mongodbURL); const Count = mongoose.connection.model("Count", schema);