@xuda.io/xuda-worker-bundle 1.3.1275 → 1.3.1277

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 -13
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -3217,6 +3217,12 @@ func.datasource.run_events_functions = async function (
3217
3217
  calling_job,
3218
3218
  async_event
3219
3219
  ) {
3220
+
3221
+ if (typeof dataSourceSession === "undefined" || dataSourceSession === null) {
3222
+ console.warn(`Event ${event_id} not exist or not found`)
3223
+ return
3224
+ }
3225
+
3220
3226
  // return new Promise(async (resolve, reject) => {
3221
3227
  var _ds = SESSION_OBJ[SESSION_ID].DS_GLB[dataSourceSession];
3222
3228
  var args = _ds.args;
@@ -3262,20 +3268,7 @@ func.datasource.run_events_functions = async function (
3262
3268
  if (job_promises.length) {
3263
3269
  await Promise.all(job_promises)
3264
3270
  }
3265
- // console.log(job_promises)
3266
- // resolve()
3267
-
3268
- // if (job_promises.length) {
3269
- // Promise.all(job_promises)
3270
- // .then((e) => {
3271
- // resolve()
3272
- // });
3273
-
3274
- // } else {
3275
- // resolve()
3276
- // }
3277
3271
 
3278
- // })
3279
3272
 
3280
3273
  };
3281
3274
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/xuda-worker-bundle",
3
- "version": "1.3.1275",
3
+ "version": "1.3.1277",
4
4
  "description": "xuda framework",
5
5
  "main": "index.js",
6
6
  "scripts": {