@xuda.io/xuda-worker-bundle-min 1.3.566 → 1.3.567

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 +6 -2
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -1537,7 +1537,7 @@ func.datasource.create = async function (
1537
1537
  const set_stat_idle = async function () {
1538
1538
  var datasource_changes = {
1539
1539
  [dsSessionP]: {
1540
- stat: "idle",
1540
+ ["datasource_main"]: { stat: "idle" },
1541
1541
  },
1542
1542
  };
1543
1543
  await func.datasource.update(SESSION_ID, datasource_changes);
@@ -3660,10 +3660,14 @@ func.datasource.update = async function (
3660
3660
  if (!_ds) {
3661
3661
  continue;
3662
3662
  }
3663
- // var fields_changes = [];
3664
3663
 
3665
3664
  for (const [row_id, fields_data] of Object.entries(row_data)) {
3666
3665
  for (const [field_id, value] of Object.entries(fields_data)) {
3666
+ if (row_id === "datasource_main") {
3667
+ _ds[field_id] = value;
3668
+ continue;
3669
+ }
3670
+
3667
3671
  if (typeof fields_data === "object") {
3668
3672
  if (glb.GLOBAL_VARS[field_id]) {
3669
3673
  _ds.data_system[field_id] = value;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/xuda-worker-bundle-min",
3
- "version": "1.3.566",
3
+ "version": "1.3.567",
4
4
  "description": "xuda framework min",
5
5
  "main": "index.js",
6
6
  "scripts": {