The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
rename
Steven Teyf5d6a7ab17d5
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.tsindex 63e4c06585..46beb2d7ce 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: "Subscription created",+ event_name: "Checkout completed",payment_processor: "stripe",amount: charge.amount_total!,currency: charge.currency!,diff --git a/apps/web/app/api/stripe/connect/webhook/customer-created.ts b/apps/web/app/api/stripe/connect/webhook/customer-created.tsindex 93a876dde7..84287b98d0 100644--- a/apps/web/app/api/stripe/connect/webhook/customer-created.ts+++ b/apps/web/app/api/stripe/connect/webhook/customer-created.ts@@ -71,7 +71,7 @@ export async function customerCreated(event: Stripe.Event) {recordLead({...clickData,event_id: nanoid(16),- event_name: "Customer created",+ event_name: "New customer",customer_id: customer.id,}),diff --git a/apps/web/app/api/stripe/connect/webhook/invoice-paid.ts b/apps/web/app/api/stripe/connect/webhook/invoice-paid.tsindex 37d77e2f20..090fab198c 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 paid",+ event_name: "Invoice payment",payment_processor: "stripe",amount: invoice.amount_paid,currency: invoice.currency,diff --git a/apps/web/lib/zod/schemas/sales.ts b/apps/web/lib/zod/schemas/sales.tsindex 64ef7fd92f..193dc4c4da 100644--- a/apps/web/lib/zod/schemas/sales.ts+++ b/apps/web/lib/zod/schemas/sales.ts@@ -27,7 +27,7 @@ export const trackSaleRequestSchema = z.object({.optional().default("Purchase").describe(- "The name of the sale event. It can be used to track different types of event for example 'Purchase', 'Upgrade', etc.",+ "The name of the sale event. It can be used to track different types of event for example 'Purchase', 'Upgrade', 'Payment', etc.",).openapi({ example: "Purchase" }),invoiceId: z