@xuda.io/xuda-dbs-plugin-xuda 1.0.58 → 1.0.60

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/server.js +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.58",
3
+ "version": "1.0.60",
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
@@ -845,9 +845,9 @@ const query_db = async function (e, db, app_id_reference, table_obj) {
845
845
  const arr = val.key[2];
846
846
 
847
847
  var obj = {};
848
- $.each(arr, (arr_key, arr_val) => {
849
- obj[sort[arr_key]] = arr_val; //val.value;
850
- });
848
+ for await (const [arr_key, arr_val] of Object.entries(arr)) {
849
+ obj[sort[arr_key]] = arr_val;
850
+ }
851
851
  obj["REDUCE_VALUE"] = val.value;
852
852
 
853
853
  rows.push({ id: crypto.randomUUID(), value: obj });