@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.
- package/package.json +1 -1
- package/server.js +5 -1
package/package.json
CHANGED
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 =
|
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 {
|