mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-11 21:07:28 -08:00
⚡ Add hook: workflow.afterCreate (#2407)
This commit is contained in:
parent
cfd797b8ad
commit
35787455ab
|
@ -679,6 +679,7 @@ class App {
|
||||||
|
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
savedWorkflow.id = savedWorkflow.id.toString();
|
savedWorkflow.id = savedWorkflow.id.toString();
|
||||||
|
await this.externalHooks.run('workflow.afterCreate', [savedWorkflow]);
|
||||||
void InternalHooksManager.getInstance().onWorkflowCreated(newWorkflow as IWorkflowBase);
|
void InternalHooksManager.getInstance().onWorkflowCreated(newWorkflow as IWorkflowBase);
|
||||||
return savedWorkflow;
|
return savedWorkflow;
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue