@xuda.io/xuda-dbs-plugin-xuda 1.0.198 → 1.0.199

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/server.js +6 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/xuda-dbs-plugin-xuda",
3
- "version": "1.0.198",
3
+ "version": "1.0.199",
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
@@ -560,14 +560,18 @@ const get_opt = function (e, table_obj) {
560
560
  }
561
561
 
562
562
  if (e.filterModelMongo) {
563
- selector_new["$and"] = [replaceKeysInQuery(JSON.parse(e.filterModelMongo))];
563
+ selector_new["$and"] = [
564
+ replaceRegexOptions(replaceKeysInQuery(JSON.parse(e.filterModelMongo))),
565
+ ];
564
566
  }
565
567
  if (e.filterModelUserMongo) {
566
568
  if (!selector_new["$and"]) {
567
569
  selector_new["$and"] = [];
568
570
  }
569
571
  selector_new["$and"].push(
570
- replaceKeysInQuery(JSON.parse(e.filterModelUserMongo))
572
+ replaceRegexOptions(
573
+ replaceKeysInQuery(JSON.parse(e.filterModelUserMongo))
574
+ )
571
575
  );
572
576
  }
573
577
  for (const [key, val] of Object.entries(opt.selector)) {