mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
refactor: Remove usless catch blocks, and add a linting rule to prevent them (no-changelog) (#12730)
This commit is contained in:
committed by
GitHub
parent
4ee4552b0e
commit
202da76380
@@ -107,12 +107,8 @@ export class FlowTrigger implements INodeType {
|
||||
}
|
||||
qs.organization_id = credentials.organizationId as number;
|
||||
const endpoint = '/integration_webhooks';
|
||||
try {
|
||||
webhooks = await flowApiRequest.call(this, 'GET', endpoint, {}, qs);
|
||||
webhooks = webhooks.integration_webhooks;
|
||||
} catch (error) {
|
||||
throw error;
|
||||
}
|
||||
webhooks = await flowApiRequest.call(this, 'GET', endpoint, {}, qs);
|
||||
webhooks = webhooks.integration_webhooks;
|
||||
for (const webhook of webhooks) {
|
||||
// @ts-ignore
|
||||
if (webhookData.webhookIds.includes(webhook.id)) {
|
||||
|
||||
Reference in New Issue
Block a user