Save on new workflow executions with webhook (#2231)

* save on new workflow executions

* only save if webhook node
This commit is contained in:
Mutasem Aldmour
2021-10-06 19:06:33 +02:00
committed by GitHub
parent f7148bdd77
commit 7159181345
2 changed files with 11 additions and 0 deletions

View File

@@ -140,6 +140,12 @@ export const workflowRun = mixins(
startNodes.push(nodeName);
}
const isNewWorkflow = this.$store.getters.isNewWorkflow;
const hasWebhookNode = this.$store.getters.currentWorkflowHasWebhookNode;
if (isNewWorkflow && hasWebhookNode) {
await this.saveCurrentWorkflow();
}
const workflowData = await this.getWorkflowDataToSave();
const startRunData: IStartRunData = {