From ef33bcfc996bd58e528dfd7df50a850591ea25ab Mon Sep 17 00:00:00 2001 From: Abheek Dhawan Date: Wed, 28 Apr 2021 11:04:07 -0500 Subject: [PATCH] Use the new Server Discover and Monitoring engine for MongoDB --- bot.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot.js b/bot.js index 479cb92..16fc937 100644 --- a/bot.js +++ b/bot.js @@ -10,7 +10,7 @@ const DATABASE_NAME = process.env.DATABASE_NAME; const CONNECTION_URL = "localhost:27017"; 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) { throw error; }