1
1
mirror of https://github.com/n8n-io/n8n.git synced 2024-09-11 13:15:28 +03:00

fix(Strava Trigger Node): Fix issue with delete events failing to display data (#6277)

This commit is contained in:
Jon 2023-05-19 14:28:57 +01:00 committed by GitHub
parent 3569d53917
commit 8a8fed0840
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -270,7 +270,7 @@ export class StravaTrigger implements INodeType {
return {};
}
if (resolveData) {
if (resolveData && body.aspect_type !== 'delete') {
let endpoint = `/athletes/${body.object_id}/stats`;
if (body.object_type === 'activity') {
endpoint = `/activities/${body.object_id}`;