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 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.ts
index 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 seconds
if (!existingCustomer) {
await recordLead(leadEvent);
}