@xuda.io/xuda-dbs-plugin-xuda 1.0.182 → 1.0.184
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 +6 -1
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.184",
|
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
@@ -298,7 +298,7 @@ const get_opt = function (e, table_obj) {
|
|
298
298
|
if (e.filterModel && JSON.parse(e.filterModel)) {
|
299
299
|
debugger;
|
300
300
|
for (const [key, val] of Object.entries(JSON.parse(e.filterModel))) {
|
301
|
-
var field_name = key;
|
301
|
+
var field_name = "udfData.data." + key;
|
302
302
|
var condition = "$and";
|
303
303
|
const make_selector = function (val) {
|
304
304
|
var value = "";
|
@@ -495,6 +495,7 @@ const get_opt = function (e, table_obj) {
|
|
495
495
|
for (const [key, val] of Object.entries(opt.fields)) {
|
496
496
|
opt.fields[key] = "udfData.data." + val;
|
497
497
|
}
|
498
|
+
|
498
499
|
if (!e?.sortModel || !JSON.parse(e.sortModel).length) {
|
499
500
|
// added 2021 09 10
|
500
501
|
if (opt.sort) {
|
@@ -509,6 +510,10 @@ const get_opt = function (e, table_obj) {
|
|
509
510
|
var selector_new = {};
|
510
511
|
|
511
512
|
for (const [key, val] of Object.entries(opt.selector)) {
|
513
|
+
if (key.substring(0, 1) === "$") {
|
514
|
+
selector_new[+key] = val;
|
515
|
+
continue;
|
516
|
+
}
|
512
517
|
selector_new["udfData.data." + key] = val;
|
513
518
|
}
|
514
519
|
|