@xuda.io/xuda-dbs-plugin-xuda 1.0.174 → 1.0.176
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 +4 -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.176",
|
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,9 @@ const get_opt = function (e, table_obj) {
|
|
295
295
|
}
|
296
296
|
}
|
297
297
|
|
298
|
-
if (e.
|
299
|
-
|
298
|
+
if (e.filterModel) {
|
299
|
+
debugger;
|
300
|
+
for (const [key, val] of Object.entries(e.filterModel)) {
|
300
301
|
var field_name = key;
|
301
302
|
var condition = "$and";
|
302
303
|
const make_selector = function (val) {
|
@@ -785,7 +786,7 @@ const query_db = async function (e, db, table_obj) {
|
|
785
786
|
.valueOf()
|
786
787
|
.toString()}`;
|
787
788
|
|
788
|
-
const _selector = _.cloneDeep(opt.selector);
|
789
|
+
// const _selector = _.cloneDeep(opt.selector);
|
789
790
|
const _sort = _.cloneDeep(opt.sort);
|
790
791
|
mango_index_obj = {
|
791
792
|
index: {
|