Add hook: workflow.afterCreate (#2407)

This commit is contained in:
nikozila 2021-11-05 18:17:05 +03:30 committed by GitHub
parent cfd797b8ad
commit 35787455ab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -679,6 +679,7 @@ class App {
// @ts-ignore
savedWorkflow.id = savedWorkflow.id.toString();
await this.externalHooks.run('workflow.afterCreate', [savedWorkflow]);
void InternalHooksManager.getInstance().onWorkflowCreated(newWorkflow as IWorkflowBase);
return savedWorkflow;
},