@xuda.io/xuda-dbs-plugin-xuda 1.0.174 → 1.0.175
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +1 -1
- package/server.js +3 -2
- package/studio.mjs +3 -3
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@xuda.io/xuda-dbs-plugin-xuda",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.175",
|
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
@@ -266,8 +266,9 @@ const get_opt = function (e, table_obj) {
|
|
266
266
|
}
|
267
267
|
}
|
268
268
|
|
269
|
-
if (e.
|
270
|
-
|
269
|
+
if (e.filterModel) {
|
270
|
+
debugger;
|
271
|
+
for (const [key, val] of Object.entries(e.filterModel)) {
|
271
272
|
var field_name = key;
|
272
273
|
var condition = "$and";
|
273
274
|
const make_selector = function (val) {
|
package/studio.mjs
CHANGED
@@ -295,8 +295,8 @@ const get_opt = function (e, table_obj) {
|
|
295
295
|
}
|
296
296
|
}
|
297
297
|
|
298
|
-
if (e.
|
299
|
-
for (const [key, val] of Object.entries(e.
|
298
|
+
if (e.filterModel) {
|
299
|
+
for (const [key, val] of Object.entries(e.filterModel)) {
|
300
300
|
var field_name = key;
|
301
301
|
var condition = "$and";
|
302
302
|
const make_selector = function (val) {
|
@@ -785,7 +785,7 @@ const query_db = async function (e, db, table_obj) {
|
|
785
785
|
.valueOf()
|
786
786
|
.toString()}`;
|
787
787
|
|
788
|
-
const _selector = _.cloneDeep(opt.selector);
|
788
|
+
// const _selector = _.cloneDeep(opt.selector);
|
789
789
|
const _sort = _.cloneDeep(opt.sort);
|
790
790
|
mango_index_obj = {
|
791
791
|
index: {
|