@xuda.io/xuda-worker-bundle-min 1.3.1186 → 1.3.1187
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.
- package/index.js +6 -15
- 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
3271
|
|
|
3268
|
-
// if (job_promises.length) {
|
|
3269
|
-
// Promise.all(job_promises)
|
|
3270
|
-
// .then((e) => {
|
|
3271
|
-
// resolve()
|
|
3272
|
-
// });
|
|
3273
|
-
|
|
3274
|
-
// } else {
|
|
3275
|
-
// resolve()
|
|
3276
|
-
// }
|
|
3277
|
-
|
|
3278
|
-
// })
|
|
3279
3272
|
|
|
3280
3273
|
};
|
|
3281
3274
|
|
|
@@ -4119,8 +4112,6 @@ func.datasource.update = async function (
|
|
|
4119
4112
|
).system_globals;
|
|
4120
4113
|
}
|
|
4121
4114
|
|
|
4122
|
-
|
|
4123
|
-
|
|
4124
4115
|
const set_fieldComputed_dependencies = async function (dsNo, field_id, parent_ds) {
|
|
4125
4116
|
|
|
4126
4117
|
// iterate child ds
|