feat: add no data alert in test substep and execution
This commit is contained in:
@@ -8,7 +8,7 @@ class Execution extends Base {
|
||||
id!: string;
|
||||
flowId!: string;
|
||||
testRun = false;
|
||||
internalId!: string;
|
||||
internalId: string;
|
||||
executionSteps: ExecutionStep[] = [];
|
||||
|
||||
static tableName = 'executions';
|
||||
|
@@ -38,11 +38,16 @@ class Processor {
|
||||
if (initialTriggerData.length === 0) {
|
||||
const lastInternalId = await this.flow.lastInternalId();
|
||||
|
||||
await Execution.query().insert({
|
||||
const executionData: Partial<Execution> = {
|
||||
flowId: this.flow.id,
|
||||
testRun: this.testRun,
|
||||
internalId: lastInternalId,
|
||||
});
|
||||
};
|
||||
|
||||
if (lastInternalId) {
|
||||
executionData.internalId = lastInternalId;
|
||||
}
|
||||
|
||||
await Execution.query().insert(executionData);
|
||||
|
||||
return;
|
||||
}
|
||||
|
Reference in New Issue
Block a user