@xuda.io/xuda-dbs-plugin-xuda 1.0.181 → 1.0.182

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/studio.mjs +10 -9
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/xuda-dbs-plugin-xuda",
3
- "version": "1.0.181",
3
+ "version": "1.0.182",
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/studio.mjs CHANGED
@@ -454,19 +454,20 @@ const get_opt = function (e, table_obj) {
454
454
  }
455
455
  }
456
456
  if (!opt.selector[condition]) {
457
- opt.selector[condition] = {};
457
+ opt.selector[condition] = [];
458
458
  }
459
- if (!opt.selector[condition][field_name]) {
460
- opt.selector[condition][field_name] = [];
461
- }
462
- opt.selector[condition][field_name].push({
463
- [operator]: value,
464
- });
459
+ // if (!opt.selector[condition][field_name]) {
460
+ // opt.selector[condition][field_name] = [];
461
+ // }
462
+ opt.selector[condition].push({ [field_name]: { [operator]: value } });
465
463
 
466
464
  if (operator_to) {
467
- opt.selector[condition][field_name].push({
468
- [operator_to]: value_to,
465
+ opt.selector[condition].push({
466
+ [field_name]: { [operator_to]: value_to },
469
467
  });
468
+ // opt.selector[condition][field_name].push({
469
+ // [operator_to]: value_to,
470
+ // });
470
471
  }
471
472
  };
472
473