mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
fix(Strava Trigger Node): Fix issue with webhook not being deleted (#11226)
This commit is contained in:
@@ -36,14 +36,13 @@ export async function stravaApiRequest(
|
||||
|
||||
if (this.getNode().type.includes('Trigger') && resource.includes('/push_subscriptions')) {
|
||||
const credentials = await this.getCredentials('stravaOAuth2Api');
|
||||
if (method === 'GET') {
|
||||
if (method === 'GET' || method === 'DELETE') {
|
||||
qs.client_id = credentials.clientId;
|
||||
qs.client_secret = credentials.clientSecret;
|
||||
} else {
|
||||
body.client_id = credentials.clientId;
|
||||
body.client_secret = credentials.clientSecret;
|
||||
}
|
||||
|
||||
return await this.helpers?.request(options);
|
||||
} else {
|
||||
return await this.helpers.requestOAuth2.call(this, 'stravaOAuth2Api', options, {
|
||||
|
||||
Reference in New Issue
Block a user