@xuda.io/xuda-worker-bundle-min 1.3.1150 → 1.3.1152

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 +19 -8
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -4120,16 +4120,27 @@ func.datasource.update = async function (
4120
4120
  if (!from_worker) {
4121
4121
  if (glb.IS_WORKER) {
4122
4122
  let tree_ret = await func.utils.TREE_OBJ.get(SESSION_ID, _ds.prog_id);
4123
+ let server_field = false
4124
+ if (tree_ret.menuType === "globals") {
4125
+ let _view_obj = await func.utils.VIEW_OBJ.get(SESSION_ID, _ds.prog_id);
4126
+ let view_field_obj = func.common.find_item_by_key(
4127
+ _view_obj.progFields,
4128
+ "field_id",
4129
+ field_id
4130
+ );
4131
+ server_field = view_field_obj.serverField
4132
+ }
4123
4133
 
4124
- if (
4125
- tree_ret.menuType !== "component" ||
4126
- _session.IS_API ||
4127
- typeof IS_MASTER_WEBSOCKET !== "undefined" ||
4128
- typeof IS_PROCESS_SERVER !== "undefined"
4129
- ) {
4130
- // return resolve();
4134
+
4135
+ if (_session.IS_API || typeof IS_MASTER_WEBSOCKET !== "undefined" || typeof IS_PROCESS_SERVER !== "undefined") {
4131
4136
  continue;
4132
4137
  }
4138
+
4139
+ if (tree_ret.menuType !== "component") {
4140
+ if (tree_ret.menuType !== "globals" || server_field) {
4141
+ continue;
4142
+ }
4143
+ }
4133
4144
  // debugger;
4134
4145
  // update client
4135
4146
 
@@ -8811,7 +8822,7 @@ func.events.execute = async function (
8811
8822
  },
8812
8823
  batch: async function () {
8813
8824
  const result = await this.get_data();
8814
- debugger
8825
+
8815
8826
  // await set_outputField(SESSION_ID, elementP, triggerP, functionP, dsSessionP, result);
8816
8827
  return result
8817
8828
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/xuda-worker-bundle-min",
3
- "version": "1.3.1150",
3
+ "version": "1.3.1152",
4
4
  "description": "xuda framework min",
5
5
  "main": "index.js",
6
6
  "scripts": {