Browse Source

Use the new Server Discover and Monitoring engine for MongoDB

master
Abheek Dhawan 4 years ago
parent
commit
ef33bcfc99
  1. 2
      bot.js

2
bot.js

@ -10,7 +10,7 @@ const DATABASE_NAME = process.env.DATABASE_NAME;
const CONNECTION_URL = "localhost:27017"; const CONNECTION_URL = "localhost:27017";
const defaultPrefix = process.env.BOT_PREFIX; const defaultPrefix = process.env.BOT_PREFIX;
MongoClient.connect("mongodb://" + CONNECTION_URL, { useNewUrlParser: true }, (error, client) => { MongoClient.connect("mongodb://" + CONNECTION_URL, { useNewUrlParser: true, useUnifiedTopology: true }, (error, client) => {
if (error) { if (error) {
throw error; throw error;
} }

Loading…
Cancel
Save