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.

Small tweak to customer created webhook

Steven Tey1fffdcb82e50
diff --git a/apps/web/app/api/stripe/connect/webhook/customer-created.ts b/apps/web/app/api/stripe/connect/webhook/customer-created.ts
index 043e3edd59..4833f200f3 100644
--- a/apps/web/app/api/stripe/connect/webhook/customer-created.ts
+++ b/apps/web/app/api/stripe/connect/webhook/customer-created.ts
@@ -51,10 +51,8 @@ export async function customerCreated(event: Stripe.Event) {
}
// Create customer
- const customerId = nanoid(16);
const customer = await prisma.customer.create({
data: {
- id: customerId,
name: stripeCustomer.name,
email: stripeCustomer.email,
stripeCustomerId: stripeCustomer.id,