@xuda.io/xuda-dbs-plugin-xuda 1.0.192 → 1.0.194

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/server.js +4 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/xuda-dbs-plugin-xuda",
3
- "version": "1.0.192",
3
+ "version": "1.0.194",
4
4
  "description": "Xuda Database Socket for Xuda's proprietary structure powered by CouchDB",
5
5
  "scripts": {
6
6
  "pub": "npm version patch --force && npm publish --access public"
package/server.js CHANGED
@@ -526,13 +526,15 @@ const get_opt = function (e, table_obj) {
526
526
  }
527
527
 
528
528
  if (e.filterModelMongo) {
529
- selector_new["$and"] = [replaceKeysInQuery(e.filterModelMongo)];
529
+ selector_new["$and"] = [replaceKeysInQuery(JSON.parse(e.filterModelMongo))];
530
530
  }
531
531
  if (e.filterModelUserMongo) {
532
532
  if (!selector_new["$and"]) {
533
533
  selector_new["$and"] = [];
534
534
  }
535
- selector_new["$and"] = [replaceKeysInQuery(e.filterModelUserMongo)];
535
+ selector_new["$and"] = [
536
+ replaceKeysInQuery(JSON.parse(e.filterModelUserMongo)),
537
+ ];
536
538
  }
537
539
  for (const [key, val] of Object.entries(opt.selector)) {
538
540
  selector_new["udfData.data." + key] = val;