Skip to content

Commit c3e245f

Browse files
authored
Merge pull request #20 from prazgaitis/fix-strava-webhooks
Move Strava webhook to Convex HTTP action
2 parents bd7ee8a + 4e88cd2 commit c3e245f

6 files changed

Lines changed: 329 additions & 311 deletions

File tree

.claude/napkin.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,5 @@
3030
- Seed data lives in `packages/backend/actions/seed.ts`
3131
- Schema changes auto-deploy locally via `pnpm dev`
3232
- Dev-only third-party scripts should be opt-in; avoid `beforeInteractive` for non-critical tooling (e.g., `react-grab`)
33+
| 2026-02-13 | self | Assumed `request.json()` in Convex HTTP actions returned typed JSON; TS now treats it as `unknown` | Add runtime type guards (or explicit schema validation) before accessing webhook payload fields |
34+
- Convex `httpAction` webhook handlers are safer with explicit type guards before deriving event keys (`object_type`, `aspect_type`) from `request.json()`

apps/web/app/api/webhooks/strava/route.ts

Lines changed: 0 additions & 310 deletions
This file was deleted.

0 commit comments

Comments
 (0)