mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
revert: "fix: wrap external hooks calls in a try catch" (#4225)
This commit is contained in:
@@ -88,13 +88,8 @@ class ExternalHooksClass implements IExternalHooksClass {
|
||||
}
|
||||
|
||||
for (const externalHookFunction of this.externalHooks[hookName]) {
|
||||
try {
|
||||
// eslint-disable-next-line no-await-in-loop
|
||||
// eslint-disable-next-line no-await-in-loop, @typescript-eslint/await-thenable
|
||||
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}`);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user