cgserver 13.2.0 → 13.2.1
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/README.md
CHANGED
|
@@ -171,7 +171,7 @@ class MongoExt {
|
|
|
171
171
|
//this.init(this._mongocfg)
|
|
172
172
|
}
|
|
173
173
|
async getConnectionStats() {
|
|
174
|
-
const stats = await
|
|
174
|
+
const stats = await this._connection.db.admin().serverStatus();
|
|
175
175
|
let current = stats.connections.current;
|
|
176
176
|
let available = stats.connections.available;
|
|
177
177
|
return { current, available };
|