@xuda.io/xuda-dbs-plugin-xuda 1.0.171 → 1.0.172
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/studio.mjs +20 -20
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.172",
|
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
@@ -795,26 +795,26 @@ const query_db = async function (e, db, table_obj) {
|
|
795
795
|
ddoc: `mango_index_table_${e.table_id}`,
|
796
796
|
};
|
797
797
|
|
798
|
-
for (let val of _sort) {
|
799
|
-
|
800
|
-
|
801
|
-
}
|
802
|
-
|
803
|
-
|
804
|
-
|
805
|
-
|
806
|
-
|
807
|
-
|
808
|
-
|
809
|
-
|
810
|
-
|
811
|
-
|
812
|
-
|
813
|
-
|
814
|
-
|
815
|
-
|
816
|
-
|
817
|
-
|
798
|
+
// for (let val of _sort) {
|
799
|
+
// let field_id = Object.keys(val)[0];
|
800
|
+
// mango_index_obj.index.fields.push(field_id);
|
801
|
+
// }
|
802
|
+
mango_index_obj = {
|
803
|
+
index: {
|
804
|
+
fields: Object.keys(
|
805
|
+
_.reduce(
|
806
|
+
_sort,
|
807
|
+
(ret, val) => {
|
808
|
+
ret[Object.keys(val)[0]] = val;
|
809
|
+
return ret;
|
810
|
+
},
|
811
|
+
_selector
|
812
|
+
)
|
813
|
+
),
|
814
|
+
},
|
815
|
+
name: index_name,
|
816
|
+
ddoc: `mango_index_table_${e.table_id}`,
|
817
|
+
};
|
818
818
|
|
819
819
|
try {
|
820
820
|
const result = await db.createIndex(mango_index_obj);
|