From 8a8fed08407f20791ae01ab83e1ce3d99715dc5c Mon Sep 17 00:00:00 2001 From: Jon Date: Fri, 19 May 2023 14:28:57 +0100 Subject: [PATCH] fix(Strava Trigger Node): Fix issue with delete events failing to display data (#6277) --- packages/nodes-base/nodes/Strava/StravaTrigger.node.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/nodes-base/nodes/Strava/StravaTrigger.node.ts b/packages/nodes-base/nodes/Strava/StravaTrigger.node.ts index 68c7fc650f8bf..9aa248db9258d 100644 --- a/packages/nodes-base/nodes/Strava/StravaTrigger.node.ts +++ b/packages/nodes-base/nodes/Strava/StravaTrigger.node.ts @@ -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}`;