feat: mongodb driver 4.x (#9832)

* feat: mongodb driver 4.x

* feat: up dbsearach
This commit is contained in:
Barış Soner Uşaklı
2021-09-23 16:49:56 -04:00
committed by GitHub
parent 6b34065f2a
commit 07adb49e7f
2 changed files with 4 additions and 5 deletions

View File

@@ -44,10 +44,9 @@ connection.getConnectionString = function (mongo) {
connection.getConnectionOptions = function (mongo) {
mongo = mongo || nconf.get('mongo');
const connOptions = {
poolSize: 10,
maxPoolSize: 10,
minPoolSize: 3,
connectTimeoutMS: 90000,
useNewUrlParser: true,
useUnifiedTopology: true,
};
return _.merge(connOptions, mongo.options || {});