mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -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]) {
|
for (const externalHookFunction of this.externalHooks[hookName]) {
|
||||||
try {
|
// eslint-disable-next-line no-await-in-loop, @typescript-eslint/await-thenable
|
||||||
// eslint-disable-next-line no-await-in-loop
|
|
||||||
await externalHookFunction.apply(externalHookFunctions, hookParameters);
|
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}`);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue