From b563a9fc1b79a0041e15d7d6b5ba998c2b035691 Mon Sep 17 00:00:00 2001 From: Divyendu Singh Date: Sun, 3 Nov 2024 10:29:39 +0100 Subject: [PATCH] chore: also log strava id for debugging --- .../app/api/social/strava/webhook/callback/route.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/next-js-app/app/api/social/strava/webhook/callback/route.ts b/packages/next-js-app/app/api/social/strava/webhook/callback/route.ts index 00012cb..789eb0e 100644 --- a/packages/next-js-app/app/api/social/strava/webhook/callback/route.ts +++ b/packages/next-js-app/app/api/social/strava/webhook/callback/route.ts @@ -94,7 +94,7 @@ async function processEvent(event: StravaWebhookEvent) { heading: 'New Activity Created (Webhook)', name: `${post.text}`, description: ` - ID: ${post.id} + ID: ${post.id} / Strava ID: ${activityCreateEvent.object_id} Activity Time: ${updatedPost?.startTime} User: ${user.firstName} ${user.lastName} Link: ${process.env.HOMEPAGE_URL}/activity/${post.id}`, @@ -157,7 +157,7 @@ async function processEvent(event: StravaWebhookEvent) { heading: 'New Activity Created (via Update Webhook)', name: `${post.text}`, description: ` - ID: ${post.id} + ID: ${post.id} / Strava ID: ${activityUpdateEvent.object_id} Activity Time: ${updatedPost?.startTime} User: ${user.firstName} ${user.lastName} Link: ${process.env.HOMEPAGE_URL}/activity/${post.id}`, @@ -189,7 +189,7 @@ async function processEvent(event: StravaWebhookEvent) { heading: 'Activity Deleted (Webhook)', name: `${post.text}`, description: ` - ID: ${post.id} + ID: ${post.id} / Strava ID: ${activityDeleteEvent.object_id} Activity Time: ${post?.startTime} User: ${user.firstName} ${user.lastName} Link: ${process.env.HOMEPAGE_URL}/activity/${post.id}`,