@xuda.io/xuda-worker-bundle-min 1.3.266 → 1.3.268

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 +9 -5
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -4002,11 +4002,15 @@ func.datasource.set_system_vars = async function (SESSION_ID, dsSessionP) {
4002
4002
  // value: _.cloneDeep(_ds.data_system),
4003
4003
  // };
4004
4004
  // }
4005
- if (dsSessionP == 0) {
4006
- const ts = await func.utils.get_dateTime(SESSION_ID, "SYS_DATE_VALUE");
4007
- for (const val of glb.SYS_DATE_ARR) {
4008
- _ds.data_system[val] = await func.utils.get_dateTime(SESSION_ID, val, ts);
4009
- }
4005
+ var _ds_0 = SESSION_OBJ[SESSION_ID].DS_GLB[0];
4006
+ if (!_ds_0) return;
4007
+
4008
+ if (!_ds_0.data_system) {
4009
+ _ds_0.data_system = {};
4010
+ }
4011
+ const ts = await func.utils.get_dateTime(SESSION_ID, "SYS_DATE_VALUE");
4012
+ for (const val of glb.SYS_DATE_ARR) {
4013
+ _ds_0.data_system[val] = await func.utils.get_dateTime(SESSION_ID, val, ts);
4010
4014
  }
4011
4015
  };
4012
4016
  func.datasource.get_currentRecordId = function (
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/xuda-worker-bundle-min",
3
- "version": "1.3.266",
3
+ "version": "1.3.268",
4
4
  "description": "xuda framework min",
5
5
  "main": "index.js",
6
6
  "scripts": {