Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

Update route.ts

Kiran K2f85b4e3afc3
diff --git a/apps/web/app/(ee)/api/stripe/integration/webhook/route.ts b/apps/web/app/(ee)/api/stripe/integration/webhook/route.ts
index e0d2032732..3647f1f6da 100644
--- a/apps/web/app/(ee)/api/stripe/integration/webhook/route.ts
+++ b/apps/web/app/(ee)/api/stripe/integration/webhook/route.ts
@@ -19,14 +19,6 @@ const relevantEvents = new Set([
// POST /api/stripe/integration/webhook – listen to Stripe webhooks (for Stripe Integration)
export const POST = withAxiom(async (req: Request) => {
- const url = new URL(req.url);
- const version = url.searchParams.get("version");
-
- // Skip the older webhook without query params
- if (!version) {
- return new Response("Ignore the events from the older webhook.");
- }
-
const buf = await req.text();
const { livemode } = JSON.parse(buf);