@xuda.io/xuda-dbs-plugin-xuda 1.0.150 → 1.0.151
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/server.js +10 -13
- package/studio.mjs +10 -13
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.151",
|
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
@@ -745,19 +745,16 @@ const query_db = async function (e, db, app_id_reference, table_obj) {
|
|
745
745
|
|
746
746
|
mango_index_obj = {
|
747
747
|
index: {
|
748
|
-
fields:
|
749
|
-
|
750
|
-
|
751
|
-
|
752
|
-
(
|
753
|
-
|
754
|
-
|
755
|
-
|
756
|
-
|
757
|
-
|
758
|
-
),
|
759
|
-
...["docType", "stat"],
|
760
|
-
],
|
748
|
+
fields: Object.keys(
|
749
|
+
_.reduce(
|
750
|
+
opt.sort,
|
751
|
+
(ret, val) => {
|
752
|
+
ret[Object.keys(val)[0]] = val;
|
753
|
+
return ret;
|
754
|
+
},
|
755
|
+
opt.selector
|
756
|
+
)
|
757
|
+
),
|
761
758
|
},
|
762
759
|
name: index_name,
|
763
760
|
ddoc: `mango_index_table_${e.table_id}`,
|
package/studio.mjs
CHANGED
@@ -764,19 +764,16 @@ const query_db = async function (e, db, table_obj) {
|
|
764
764
|
|
765
765
|
mango_index_obj = {
|
766
766
|
index: {
|
767
|
-
fields:
|
768
|
-
|
769
|
-
|
770
|
-
|
771
|
-
(
|
772
|
-
|
773
|
-
|
774
|
-
|
775
|
-
|
776
|
-
|
777
|
-
),
|
778
|
-
...["docType", "stat"],
|
779
|
-
],
|
767
|
+
fields: Object.keys(
|
768
|
+
_.reduce(
|
769
|
+
opt.sort,
|
770
|
+
(ret, val) => {
|
771
|
+
ret[Object.keys(val)[0]] = val;
|
772
|
+
return ret;
|
773
|
+
},
|
774
|
+
opt.selector
|
775
|
+
)
|
776
|
+
),
|
780
777
|
},
|
781
778
|
name: index_name,
|
782
779
|
ddoc: `mango_index_table_${e.table_id}`,
|