@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.
Files changed (3) hide show
  1. package/package.json +1 -1
  2. package/server.js +10 -13
  3. 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.150",
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
- ...Object.keys(
750
- _.reduce(
751
- opt.sort,
752
- (ret, val) => {
753
- ret[Object.keys(val)[0]] = val;
754
- return ret;
755
- },
756
- opt.selector
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
- ...Object.keys(
769
- _.reduce(
770
- opt.sort,
771
- (ret, val) => {
772
- ret[Object.keys(val)[0]] = val;
773
- return ret;
774
- },
775
- opt.selector
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}`,