Feat: resolve dependencies & support Render free tier #68

Open
Amia33 wants to merge 4 commits from Amia33/master into master
Showing only changes of commit a9f839ff2e - Show all commits

View File

@ -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);