@xuda.io/xuda-worker-bundle-min 1.3.831 → 1.3.832

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/index.js +5 -9
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -2626,7 +2626,6 @@ func.datasource.execute = async function (
2626
2626
  data_arr = _ds.data_feed?.rows || [];
2627
2627
  }
2628
2628
 
2629
- const newRecord = 999999;
2630
2629
  // initiated with Update but no rows found
2631
2630
  if (
2632
2631
  tree_obj.crudMode === "U" &&
@@ -2634,12 +2633,12 @@ func.datasource.execute = async function (
2634
2633
  !_ds?.data_feed?.rows?.length
2635
2634
  ) {
2636
2635
  _ds.set_mode = "C";
2637
- data_arr = [{ _ROWID: "newRecord" }];
2636
+ data_arr[glb.newRecord] = [{ _ROWID: "newRecord" }];
2638
2637
  }
2639
2638
 
2640
2639
  if (tree_obj.crudMode === "C") {
2641
2640
  _ds.set_mode = "C";
2642
- data_arr = [{ _ROWID: "newRecord" }];
2641
+ data_arr[glb.newRecord] = [{ _ROWID: "newRecord" }];
2643
2642
  }
2644
2643
 
2645
2644
  for await (let val of data_arr) {
@@ -2700,9 +2699,7 @@ func.datasource.execute = async function (
2700
2699
  _ds.set_mode = "C";
2701
2700
  _ds.record_not_found = true;
2702
2701
 
2703
- const newRecord = 999999;
2704
-
2705
- if (_.isEmpty(_ds.data_feed.rows[newRecord])) {
2702
+ if (_.isEmpty(_ds.data_feed.rows[glb.newRecord])) {
2706
2703
  await func.datasource.render_fields_form(
2707
2704
  SESSION_ID,
2708
2705
  dataSourceSession,
@@ -3128,9 +3125,8 @@ func.datasource.run_rows_form = async function (
3128
3125
  if (typeof val !== "undefined") {
3129
3126
  idx = rowIdxP;
3130
3127
  } else {
3131
- const newRecord = 999999;
3132
- val = _ds.data_feed.rows[newRecord] = { _ROWID: "newRecord" };
3133
- idx = newRecord;
3128
+ val = _ds.data_feed.rows[glb.newRecord] = { _ROWID: "newRecord" };
3129
+ idx = glb.newRecord;
3134
3130
  }
3135
3131
  } catch (e) {
3136
3132
  console.error(e);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/xuda-worker-bundle-min",
3
- "version": "1.3.831",
3
+ "version": "1.3.832",
4
4
  "description": "xuda framework min",
5
5
  "main": "index.js",
6
6
  "scripts": {