@xuda.io/xuda-dbs-plugin-xuda 1.0.194 → 1.0.195
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +1 -1
- package/server.js +4 -4
- package/studio.mjs +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.
|
3
|
+
"version": "1.0.195",
|
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
@@ -532,9 +532,9 @@ const get_opt = function (e, table_obj) {
|
|
532
532
|
if (!selector_new["$and"]) {
|
533
533
|
selector_new["$and"] = [];
|
534
534
|
}
|
535
|
-
selector_new["$and"]
|
536
|
-
replaceKeysInQuery(JSON.parse(e.filterModelUserMongo))
|
537
|
-
|
535
|
+
selector_new["$and"].push(
|
536
|
+
replaceKeysInQuery(JSON.parse(e.filterModelUserMongo))
|
537
|
+
);
|
538
538
|
}
|
539
539
|
for (const [key, val] of Object.entries(opt.selector)) {
|
540
540
|
selector_new["udfData.data." + key] = val;
|
@@ -838,7 +838,7 @@ const query_db = async function (e, db, app_id_reference, table_obj) {
|
|
838
838
|
};
|
839
839
|
|
840
840
|
const runtime_get_query_data = async function () {
|
841
|
-
var limit =
|
841
|
+
var limit = 99999999;
|
842
842
|
var skip = 0;
|
843
843
|
|
844
844
|
if (e.limit) {
|
package/studio.mjs
CHANGED
@@ -571,13 +571,15 @@ const get_opt = function (e, table_obj) {
|
|
571
571
|
}
|
572
572
|
|
573
573
|
if (e.filterModelMongo) {
|
574
|
-
selector_new["$and"] = [replaceKeysInQuery(e.filterModelMongo)];
|
574
|
+
selector_new["$and"] = [replaceKeysInQuery(JSON.parse(e.filterModelMongo))];
|
575
575
|
}
|
576
576
|
if (e.filterModelUserMongo) {
|
577
577
|
if (!selector_new["$and"]) {
|
578
578
|
selector_new["$and"] = [];
|
579
579
|
}
|
580
|
-
selector_new["$and"]
|
580
|
+
selector_new["$and"].push(
|
581
|
+
replaceKeysInQuery(JSON.parse(e.filterModelUserMongo))
|
582
|
+
);
|
581
583
|
|
582
584
|
// selector_new["$and"] = {
|
583
585
|
// ...selector_new["$and"],
|