Remove unused params for mongouri

This commit is contained in:
Amia33 2024-11-20 11:46:51 +08:00
parent d249662aa1
commit a9f839ff2e
No known key found for this signature in database
GPG Key ID: E33F21251BB5258B

View File

@ -13,11 +13,7 @@ const schema = new mongoose.Schema(
// the default mongodb url (local server) // the default mongodb url (local server)
const mongodbURL = process.env.DB_URL || "mongodb://127.0.0.1:27017"; const mongodbURL = process.env.DB_URL || "mongodb://127.0.0.1:27017";
mongoose.connect(mongodbURL, { mongoose.connect(mongodbURL);
useNewUrlParser: true,
useUnifiedTopology: true,
useFindAndModify: false,
});
const Count = mongoose.connection.model("Count", schema); const Count = mongoose.connection.model("Count", schema);