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.

Merge branch 'main' into earnings-events

Steven Teybe9019631baf
diff --cc apps/web/app/api/stripe/integration/webhook/invoice-paid.ts
index 65eb0b4ad7,44dcf91cf4..7374abdb52
--- a/apps/web/app/api/stripe/integration/webhook/invoice-paid.ts
+++ b/apps/web/app/api/stripe/integration/webhook/invoice-paid.ts
@@@ -51,12 -51,10 +51,12 @@@ export async function invoicePaid(event
return `Lead event with customer ID ${customer.id} not found, skipping...`;
}
+ const eventId = nanoid(16);
+
const saleData = {
...leadEvent.data[0],
- event_id: nanoid(16),
+ event_id: eventId,
- event_name: "Subscription update",
+ event_name: "Invoice paid",
payment_processor: "stripe",
amount: invoice.amount_paid,
currency: invoice.currency,