mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-11 01:28:58 +03:00
⚡ Catch workflowExecuteAfter hook (#1189)
This commit is contained in:
parent
8aa50df457
commit
130f944398
@ -761,7 +761,9 @@ export class WorkflowExecute {
|
||||
newStaticData = workflow.staticData;
|
||||
}
|
||||
|
||||
await this.executeHook('workflowExecuteAfter', [fullRunData, newStaticData]);
|
||||
await this.executeHook('workflowExecuteAfter', [fullRunData, newStaticData]).catch(error => {
|
||||
console.error('There was a problem running hook "workflowExecuteAfter"', error);
|
||||
});
|
||||
|
||||
return fullRunData;
|
||||
});
|
||||
|
@ -28,8 +28,6 @@ export class WorkflowHooks {
|
||||
async executeHookFunctions(hookName: string, parameters: any[]) { // tslint:disable-line:no-any
|
||||
if (this.hookFunctions[hookName] !== undefined && Array.isArray(this.hookFunctions[hookName])) {
|
||||
for (const hookFunction of this.hookFunctions[hookName]!) {
|
||||
// TODO: As catch got removed we should make sure that we catch errors
|
||||
// where hooks get called
|
||||
await hookFunction.apply(this, parameters);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user