@okf/ootils 1.4.2 → 1.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/node.js +5 -5
- package/dist/node.mjs +5 -5
- package/package.json +1 -1
package/dist/node.js
CHANGED
|
@@ -348,10 +348,10 @@ var require_MongoConnector = __commonJS({
|
|
|
348
348
|
this.env = options.env;
|
|
349
349
|
this.dbConfigs = options.dbConfigs;
|
|
350
350
|
this.mongoOptions = options.mongoOptions || {
|
|
351
|
-
maxPoolSize:
|
|
352
|
-
serverSelectionTimeoutMS:
|
|
353
|
-
socketTimeoutMS:
|
|
354
|
-
family: 4
|
|
351
|
+
// maxPoolSize: 40,
|
|
352
|
+
// serverSelectionTimeoutMS: 5000,
|
|
353
|
+
// socketTimeoutMS: 45000,
|
|
354
|
+
// family: 4,
|
|
355
355
|
};
|
|
356
356
|
_MongoConnector.instance = this;
|
|
357
357
|
if (!this.env) {
|
|
@@ -422,7 +422,7 @@ var require_MongoConnector = __commonJS({
|
|
|
422
422
|
this.clusterConnections[CLUSTER_NAME] = await mongoose5.createConnection(
|
|
423
423
|
DB_URI,
|
|
424
424
|
this.mongoOptions
|
|
425
|
-
);
|
|
425
|
+
).asPromise();
|
|
426
426
|
console.log(`Connected to MongoDB: ${CLUSTER_NAME}`);
|
|
427
427
|
})
|
|
428
428
|
);
|
package/dist/node.mjs
CHANGED
|
@@ -353,10 +353,10 @@ var require_MongoConnector = __commonJS({
|
|
|
353
353
|
this.env = options.env;
|
|
354
354
|
this.dbConfigs = options.dbConfigs;
|
|
355
355
|
this.mongoOptions = options.mongoOptions || {
|
|
356
|
-
maxPoolSize:
|
|
357
|
-
serverSelectionTimeoutMS:
|
|
358
|
-
socketTimeoutMS:
|
|
359
|
-
family: 4
|
|
356
|
+
// maxPoolSize: 40,
|
|
357
|
+
// serverSelectionTimeoutMS: 5000,
|
|
358
|
+
// socketTimeoutMS: 45000,
|
|
359
|
+
// family: 4,
|
|
360
360
|
};
|
|
361
361
|
_MongoConnector.instance = this;
|
|
362
362
|
if (!this.env) {
|
|
@@ -427,7 +427,7 @@ var require_MongoConnector = __commonJS({
|
|
|
427
427
|
this.clusterConnections[CLUSTER_NAME] = await mongoose5.createConnection(
|
|
428
428
|
DB_URI,
|
|
429
429
|
this.mongoOptions
|
|
430
|
-
);
|
|
430
|
+
).asPromise();
|
|
431
431
|
console.log(`Connected to MongoDB: ${CLUSTER_NAME}`);
|
|
432
432
|
})
|
|
433
433
|
);
|