cgserver 6.9.471 → 6.9.472

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.
@@ -296,6 +296,9 @@ class MongoManager {
296
296
  async updateOne(collection, model, where, upsert = false) {
297
297
  let _id = model["_id"];
298
298
  delete model["_id"];
299
+ if (!where && _id) {
300
+ where["_id"] = _id;
301
+ }
299
302
  this._convertWhere(where);
300
303
  let rs = { errcode: null, rs: null };
301
304
  if (!this._mongo) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cgserver",
3
- "version": "6.9.471",
3
+ "version": "6.9.472",
4
4
  "author": "trojan",
5
5
  "type": "commonjs",
6
6
  "description": "free for all.Websocket or Http",