@xuda.io/xuda-dbs-plugin-xuda 1.0.91 → 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.91",
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
@@ -430,7 +430,7 @@ const query_db = async function (e, db, app_id_reference, table_obj) {
430
430
  }
431
431
  }
432
432
 
433
- var selector = e.selector || {};
433
+ var selector = {};
434
434
 
435
435
  if (from && !_.isEmpty(from)) {
436
436
  selector = data;
@@ -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 {