feat: Insert execution even though there is no new data fetched

This commit is contained in:
Faruk AYDIN
2022-08-30 15:14:19 +03:00
parent fda957b1f6
commit 9bd1447bcf

View File

@@ -36,6 +36,14 @@ class Processor {
let initialTriggerData = await this.getInitialTriggerData(triggerStep!);
if (initialTriggerData.length === 0) {
const lastInternalId = await this.flow.lastInternalId();
await Execution.query().insert({
flowId: this.flow.id,
testRun: this.testRun,
internalId: lastInternalId,
});
return;
}