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.

fix the argument name

Kiran K23667e1f34fb
diff --git a/apps/web/app/api/campaigns/webhooks/stripe/route.ts b/apps/web/app/api/campaigns/webhooks/stripe/route.ts
index 5714189c00..49dd82555d 100644
--- a/apps/web/app/api/campaigns/webhooks/stripe/route.ts
+++ b/apps/web/app/api/campaigns/webhooks/stripe/route.ts
@@ -72,7 +72,7 @@ async function handleChargeSucceeded(event: Stripe.Event) {
// Check customerId exists in TB
// TODO: Update clickId
- const leadEvent = await getLeadEvent({ customerId });
+ const leadEvent = await getLeadEvent({ customer_id: customerId });
if (!leadEvent || leadEvent.data.length === 0) {
return;
@@ -91,6 +91,6 @@ async function handleChargeSucceeded(event: Stripe.Event) {
refunded: false,
metadata: {
charge,
- },
+ } as any, // TODO: Fix this type
});
}