Skip to content

Commit

Permalink
fix(Strava Trigger Node): Fix issue with delete events failing to dis…
Browse files Browse the repository at this point in the history
…play data (#6277)
  • Loading branch information
Joffcom committed May 19, 2023
1 parent 3569d53 commit 8a8fed0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/nodes-base/nodes/Strava/StravaTrigger.node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}`;
Expand Down

0 comments on commit 8a8fed0

Please sign in to comment.