cgserver 13.2.7 → 13.2.8

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.
@@ -36,7 +36,7 @@ class MongoBaseService {
36
36
  Log_1.gLog.error("MongoDB connection is not valid, please check the connection settings.");
37
37
  throw new Error("MongoDB connection is not valid");
38
38
  }
39
- this._model = mongoose_1.default.model(this._collection_name, this._schema);
39
+ this._model = this.mongo.connection.model(this._collection_name, this._schema);
40
40
  return this._model;
41
41
  }
42
42
  constructor(collection_name, schema, dbname) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cgserver",
3
- "version": "13.2.7",
3
+ "version": "13.2.8",
4
4
  "author": "trojan",
5
5
  "type": "commonjs",
6
6
  "description": "free for all.Websocket or Http",