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 event names

Steven Teya31891017571
diff --git a/apps/web/app/api/stripe/connect/webhook/checkout-session-completed.ts b/apps/web/app/api/stripe/connect/webhook/checkout-session-completed.ts
index 46beb2d7ce..4cd44f60cb 100644
--- a/apps/web/app/api/stripe/connect/webhook/checkout-session-completed.ts
+++ b/apps/web/app/api/stripe/connect/webhook/checkout-session-completed.ts
@@ -62,7 +62,7 @@ export async function checkoutSessionCompleted(event: Stripe.Event) {
recordSale({
...leadEvent.data[0],
event_id: nanoid(16),
- event_name: "Checkout completed",
+ event_name: "Subscription creation",
payment_processor: "stripe",
amount: charge.amount_total!,
currency: charge.currency!,
diff --git a/apps/web/app/api/stripe/connect/webhook/invoice-paid.ts b/apps/web/app/api/stripe/connect/webhook/invoice-paid.ts
index 090fab198c..6e3cf0afa7 100644
--- a/apps/web/app/api/stripe/connect/webhook/invoice-paid.ts
+++ b/apps/web/app/api/stripe/connect/webhook/invoice-paid.ts
@@ -47,7 +47,7 @@ export async function invoicePaid(event: Stripe.Event) {
recordSale({
...leadEvent.data[0],
event_id: nanoid(16),
- event_name: "Invoice payment",
+ event_name: "Subscription update",
payment_processor: "stripe",
amount: invoice.amount_paid,
currency: invoice.currency,