refactor(Slack Node): Stop reporting to Sentry errors from missing scopes (no-changelog) (#7542)

https://n8nio.sentry.io/issues/4570238312
This commit is contained in:
Iván Ovejero 2023-10-27 16:46:05 +02:00 committed by GitHub
parent 6796ba75a1
commit 18dcea8c19
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -64,6 +64,7 @@ export async function slackApiRequest(
{
description:
'Hint: Upgrade to a Slack plan that includes the functionality you want to use.',
severity: 'warning',
},
);
} else if (response.error === 'missing_scope') {
@ -72,6 +73,7 @@ export async function slackApiRequest(
'Your Slack credential is missing required Oauth Scopes',
{
description: `Add the following scope(s) to your Slack App: ${response.needed}`,
severity: 'warning',
},
);
}