cgserver 13.1.3 → 13.1.4

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.
@@ -116,8 +116,8 @@ class MongoExt {
116
116
  this._mongocfg = cfg;
117
117
  this._inited = true;
118
118
  Log_1.gLog.info("mongo config=" + JSON.stringify(this._mongocfg));
119
- mongoose_1.default.connection.on("connected", this.onClose.bind(this));
120
- mongoose_1.default.connection.on("disconnected", this.onClose.bind(this));
119
+ mongoose_1.default.connection.on("connected", this.onConnect.bind(this));
120
+ mongoose_1.default.connection.on("disconnected", this.onDisconnect.bind(this));
121
121
  mongoose_1.default.connection.on("open", this.onOpen.bind(this));
122
122
  mongoose_1.default.connection.on("close", this.onClose.bind(this));
123
123
  this._mongocfg.options.dbName = this._mongocfg.database;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cgserver",
3
- "version": "13.1.3",
3
+ "version": "13.1.4",
4
4
  "author": "trojan",
5
5
  "type": "commonjs",
6
6
  "description": "free for all.Websocket or Http",