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
@@ -1,4 +1,8 @@
1
1
  # 版本更新日志
2
+ ## v13.2.1
3
+ - Fix MongoManager to use correct connection for stats
4
+ ## v13.2.0
5
+ - Refactor MongoDB service to support multiple databases
2
6
  ## v13+
3
7
  - 主要是mongo更换为mongoose,老项目不要升级
4
8
 
@@ -171,7 +171,7 @@ class MongoExt {
171
171
  //this.init(this._mongocfg)
172
172
  }
173
173
  async getConnectionStats() {
174
- const stats = await mongoose_2.default.connection.db.admin().serverStatus();
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 };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cgserver",
3
- "version": "13.2.0",
3
+ "version": "13.2.1",
4
4
  "author": "trojan",
5
5
  "type": "commonjs",
6
6
  "description": "free for all.Websocket or Http",