@xuda.io/xuda-dbs-plugin-xuda 1.0.164 → 1.0.165

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/studio.mjs +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/xuda-dbs-plugin-xuda",
3
- "version": "1.0.164",
3
+ "version": "1.0.165",
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
@@ -787,8 +787,8 @@ const query_db = async function (e, db, table_obj) {
787
787
  ddoc: `mango_index_table_${e.table_id}`,
788
788
  };
789
789
 
790
- for (let [key, val] of Object.entries(_sort)) {
791
- mango_index_obj.index.fields.push(key);
790
+ for (let val of _sort) {
791
+ mango_index_obj.index.fields.push(Object.keys(val)[0]);
792
792
  }
793
793
  // mango_index_obj = {
794
794
  // index: {