@xuda.io/xuda-dbs-plugin-xuda 1.0.180 → 1.0.182
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +1 -1
- package/studio.mjs +11 -10
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@xuda.io/xuda-dbs-plugin-xuda",
|
3
|
-
"version": "1.0.
|
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
@@ -453,20 +453,21 @@ const get_opt = function (e, table_obj) {
|
|
453
453
|
value = val.filter;
|
454
454
|
}
|
455
455
|
}
|
456
|
-
if (!opt.selector[
|
457
|
-
opt.selector[
|
456
|
+
if (!opt.selector[condition]) {
|
457
|
+
opt.selector[condition] = [];
|
458
458
|
}
|
459
|
-
if (!opt.selector[
|
460
|
-
|
461
|
-
}
|
462
|
-
opt.selector[
|
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[
|
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
|
|