feat: Insert execution even though there is no new data fetched
This commit is contained in:
@@ -36,6 +36,14 @@ class Processor {
|
|||||||
let initialTriggerData = await this.getInitialTriggerData(triggerStep!);
|
let initialTriggerData = await this.getInitialTriggerData(triggerStep!);
|
||||||
|
|
||||||
if (initialTriggerData.length === 0) {
|
if (initialTriggerData.length === 0) {
|
||||||
|
const lastInternalId = await this.flow.lastInternalId();
|
||||||
|
|
||||||
|
await Execution.query().insert({
|
||||||
|
flowId: this.flow.id,
|
||||||
|
testRun: this.testRun,
|
||||||
|
internalId: lastInternalId,
|
||||||
|
});
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user