@xuda.io/xuda-dbs-plugin-xuda 1.0.90 → 1.0.92

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/server.js +5 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/xuda-dbs-plugin-xuda",
3
- "version": "1.0.90",
3
+ "version": "1.0.92",
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
@@ -437,7 +437,7 @@ const query_db = async function (e, db, app_id_reference, table_obj) {
437
437
  }
438
438
 
439
439
  var opt = {
440
- selector: selector,
440
+ selector,
441
441
  limit: limit,
442
442
  skip: skip,
443
443
  fields: fields,
@@ -722,6 +722,10 @@ const query_db = async function (e, db, app_id_reference, table_obj) {
722
722
  opt.fields.push("_id");
723
723
  opt.fields.push("_rev");
724
724
 
725
+ if (e.selector) {
726
+ opt.selector = { ...e.selector, ...opt.selector };
727
+ }
728
+
725
729
  // xuda
726
730
 
727
731
  try {