The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Update checkout-session-completed.ts
Steven Tey1d65343b149b
diff --git a/apps/web/app/api/stripe/integration/webhook/checkout-session-completed.ts b/apps/web/app/api/stripe/integration/webhook/checkout-session-completed.tsindex 277fa57888..2c57e6dc0a 100644--- a/apps/web/app/api/stripe/integration/webhook/checkout-session-completed.ts+++ b/apps/web/app/api/stripe/integration/webhook/checkout-session-completed.ts@@ -171,8 +171,6 @@ export async function checkoutSessionCompleted(event: Stripe.Event) {metadata: "",};- // hacky way to check if upsert was a create or an update- // see if customer.createdAt is within the last 10 secondsif (!existingCustomer) {await recordLead(leadEvent);}