@xuda.io/xuda-dbs-plugin-xuda 1.0.36 → 1.0.38
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 +2 -2
- package/server.js +6 -10
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.38",
|
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"
|
@@ -15,7 +15,7 @@
|
|
15
15
|
"license": "Proprietary software licenses",
|
16
16
|
"svg_icon": "<svg xmlns=\"http://www.w3.org/2000/svg\" class=\"icon icon-tabler icon-tabler-database\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" stroke-width=\"2\" stroke=\"currentColor\" fill=\"none\" stroke-linecap=\"round\" stroke-linejoin=\"round\"> <path stroke=\"none\" d=\"M0 0h24v24H0z\" fill=\"none\"></path> <ellipse cx=\"12\" cy=\"6\" rx=\"8\" ry=\"3\"></ellipse> <path d=\"M4 6v6a8 3 0 0 0 16 0v-6\"></path> <path d=\"M4 12v6a8 3 0 0 0 16 0v-6\"></path> </svg>",
|
17
17
|
"dependencies": {
|
18
|
-
"nano": "^10.
|
18
|
+
"nano": "^10.1.0",
|
19
19
|
"lodash": "^4.17.21",
|
20
20
|
"@xuda.io/xu_cast": "latest"
|
21
21
|
}
|
package/server.js
CHANGED
@@ -794,7 +794,7 @@ exports.read = async (params, setup_doc, resolve, reject) => {
|
|
794
794
|
}
|
795
795
|
|
796
796
|
opt.selector = selector_new;
|
797
|
-
opt.selector["udfData.udffileid"] = e.
|
797
|
+
opt.selector["udfData.udffileid"] = e.table_id;
|
798
798
|
opt.selector.stat = e.archived ? 4 : 3;
|
799
799
|
|
800
800
|
opt.fields.push("_id");
|
@@ -803,15 +803,11 @@ exports.read = async (params, setup_doc, resolve, reject) => {
|
|
803
803
|
// xuda
|
804
804
|
var cache_string = JSON.stringify(opt);
|
805
805
|
|
806
|
-
if (
|
807
|
-
|
808
|
-
|
809
|
-
|
810
|
-
|
811
|
-
return await done(
|
812
|
-
__.CACHE_QUERY_REQ[app_id_reference][e.table_id][cache_string].doc
|
813
|
-
);
|
814
|
-
}
|
806
|
+
// if (__.CACHE_QUERY_REQ?.[app_id_reference]?.[e.table_id]?.[cache_string]) {
|
807
|
+
// return await done(
|
808
|
+
// __.CACHE_QUERY_REQ[app_id_reference][e.table_id][cache_string].doc
|
809
|
+
// );
|
810
|
+
// }
|
815
811
|
try {
|
816
812
|
try {
|
817
813
|
const doc = await db.find(opt);
|