From 61fd883668002b161caf23f2528f028d9e6d22ee Mon Sep 17 00:00:00 2001 From: Peber Date: Sun, 12 Jan 2025 12:34:38 -0500 Subject: [PATCH 1/2] updating the typecasting on the webhook ownerid --- src/strava_webhook.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/strava_webhook.js b/src/strava_webhook.js index a6a6f97..a409b55 100644 --- a/src/strava_webhook.js +++ b/src/strava_webhook.js @@ -33,7 +33,8 @@ app.post('/webhook', async (req, res) => { const event = req.body; if (event.object_type === 'activity' && event.aspect_type === 'create') { - const user = await UsersTable.findOne({ where: { strava_user_id: event.owner_id } }); + const ownerIdString = event.owner_id.toString(); + const user = await UsersTable.findOne({ where: { strava_user_id: ownerIdString } }); if (user) { const stravaAccessToken = await getStravaAuthentication(user.dataValues) try { From 5ca8d7b3401e879463cb2f60ad507284bd273296 Mon Sep 17 00:00:00 2001 From: "GitHub-Actions[bot]" Date: Sun, 12 Jan 2025 17:36:09 +0000 Subject: [PATCH 2/2] Bot: Updating CHANGELOG, README, app.version and package.json for release based on #32 --- CHANGELOG.md | 7 +++++++ app.version | 2 +- package.json | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ad3481d..052b8a5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,13 @@ # Changelog +### Version 1.3.1 + +#### bugfix +* PR [#32](https://github.com/petercort/FBF-Buddy/pull/32) - updating the typecasting on the webhook ownerid + + + ### Version 1.3.0 #### chore diff --git a/app.version b/app.version index f0bb29e..3a3cd8c 100644 --- a/app.version +++ b/app.version @@ -1 +1 @@ -1.3.0 +1.3.1 diff --git a/package.json b/package.json index 5d9cc74..c3a40d7 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "fbf-buddy", "private": true, - "version": "1.3.0", + "version": "1.3.1", "description": "Cycling event app for Discord", "main": "app.js", "engines": {