Skip to content

Node.js based forum software built for the modern web

fix: #7919, add useUnifiedTopology

Barış Soner Uşaklı910b9b88647a
diff --git a/src/database/mongo/connection.js b/src/database/mongo/connection.js
index 96f299f28b..3b0a32573a 100644
--- a/src/database/mongo/connection.js
+++ b/src/database/mongo/connection.js
@@ -50,6 +50,7 @@ connection.getConnectionOptions = function (mongo) {
autoReconnect: true,
connectTimeoutMS: 90000,
useNewUrlParser: true,
+ useUnifiedTopology: true,
};
return _.merge(connOptions, mongo.options || {});