@xuda.io/xuda-dbs-plugin-xuda 1.0.56 → 1.0.57
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 +2 -2
package/package.json
CHANGED
package/server.js
CHANGED
@@ -841,7 +841,7 @@ const query_db = async function (e, db, app_id_reference, table_obj) {
|
|
841
841
|
if (e.reduce) {
|
842
842
|
let rows = [];
|
843
843
|
|
844
|
-
|
844
|
+
for await (var val of body.rows) {
|
845
845
|
const arr = val.key[2];
|
846
846
|
|
847
847
|
var obj = {};
|
@@ -851,7 +851,7 @@ const query_db = async function (e, db, app_id_reference, table_obj) {
|
|
851
851
|
obj["REDUCE_VALUE"] = val.value;
|
852
852
|
|
853
853
|
rows.push({ id: crypto.randomUUID(), value: obj });
|
854
|
-
}
|
854
|
+
}
|
855
855
|
return { code: 1, data: rows };
|
856
856
|
}
|
857
857
|
|