mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-25 12:44:07 -08:00
revert: "fix: wrap external hooks calls in a try catch" (#4225)
This commit is contained in:
parent
8b0ccc017b
commit
de4dd53a53
|
@ -88,13 +88,8 @@ class ExternalHooksClass implements IExternalHooksClass {
|
|||
}
|
||||
|
||||
for (const externalHookFunction of this.externalHooks[hookName]) {
|
||||
try {
|
||||
// eslint-disable-next-line no-await-in-loop
|
||||
await externalHookFunction.apply(externalHookFunctions, hookParameters);
|
||||
} catch (error) {
|
||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access, @typescript-eslint/restrict-template-expressions
|
||||
LoggerProxy.info(`Error in external hook "${hookName}": ${error.message}`);
|
||||
}
|
||||
// eslint-disable-next-line no-await-in-loop, @typescript-eslint/await-thenable
|
||||
await externalHookFunction.apply(externalHookFunctions, hookParameters);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue