@xuda.io/xuda-worker-bundle-min 1.3.1180 → 1.3.1182

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 -9
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -3215,7 +3215,7 @@ func.datasource.run_events_functions = async function (
3215
3215
  dataSourceSession,
3216
3216
  event_id,
3217
3217
  calling_job,
3218
- NA_calling_job_ds
3218
+ async_event
3219
3219
  ) {
3220
3220
  // return new Promise(async (resolve, reject) => {
3221
3221
  var _ds = SESSION_OBJ[SESSION_ID].DS_GLB[dataSourceSession];
@@ -3239,14 +3239,11 @@ func.datasource.run_events_functions = async function (
3239
3239
  val.data.parameters
3240
3240
  );
3241
3241
 
3242
- if (calling_job) continue
3242
+ if (calling_job || async_event) continue
3243
3243
 
3244
3244
  for (let job_num of jobs) {
3245
3245
  job_promises.push(new Promise((resolve, reject) => {
3246
- // setTimeout(() => {
3247
- // resolve(job_num);
3248
- // }, 2000);
3249
- // return
3246
+
3250
3247
  const interval = setInterval(() => {
3251
3248
  var job_index = func.events.find_job_index(SESSION_ID, job_num);
3252
3249
  if (job_index == null) {
@@ -4708,7 +4705,7 @@ func.datasource.get_value = async function (
4708
4705
 
4709
4706
  if (dsSessionP > 0) {
4710
4707
  _ds.data_system["SYS_STR_ACTIVE_ROW_ID"] = _ds.currentRecordId;
4711
- _ds.data_system["SYS_STR_PROG_DS_SESSION"] = dsSessionP;
4708
+ _ds.data_system["SYS_GLOBAL_STR_PROG_DS_SESSION"] = dsSessionP;
4712
4709
  }
4713
4710
 
4714
4711
  // set system time
@@ -4880,7 +4877,7 @@ func.datasource.reset_jobs = function (SESSION_ID, dsSessionP, sourceP, errP) {
4880
4877
 
4881
4878
  // if (dsSessionP > 0) {
4882
4879
  // _ds.data_system["SYS_STR_ACTIVE_ROW_ID"] = _ds.currentRecordId;
4883
- // _ds.data_system["SYS_STR_PROG_DS_SESSION"] = dsSessionP;
4880
+ // _ds.data_system["SYS_GLOBAL_STR_PROG_DS_SESSION"] = dsSessionP;
4884
4881
  // }
4885
4882
 
4886
4883
  // // _ds.data_system["SYS_OBJ_DS_INFO"] = {
@@ -8796,7 +8793,7 @@ func.events.execute = async function (
8796
8793
  dsP,
8797
8794
  event_name,
8798
8795
  jobNoP,
8799
- null
8796
+ calling_trigger_prop?.props?.async
8800
8797
  );
8801
8798
  // done_execution(event_name);
8802
8799
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/xuda-worker-bundle-min",
3
- "version": "1.3.1180",
3
+ "version": "1.3.1182",
4
4
  "description": "xuda framework min",
5
5
  "main": "index.js",
6
6
  "scripts": {