mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-17 19:21:04 +01:00
fix: #7919, add useUnifiedTopology
This commit is contained in:
@@ -50,6 +50,7 @@ connection.getConnectionOptions = function (mongo) {
|
||||
autoReconnect: true,
|
||||
connectTimeoutMS: 90000,
|
||||
useNewUrlParser: true,
|
||||
useUnifiedTopology: true,
|
||||
};
|
||||
|
||||
return _.merge(connOptions, mongo.options || {});
|
||||
|
||||
Reference in New Issue
Block a user