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 sales.ts

Steven Tey5375b5f951a2
diff --git a/apps/web/lib/zod/schemas/sales.ts b/apps/web/lib/zod/schemas/sales.ts
index 5729809531..64ef7fd92f 100644
--- a/apps/web/lib/zod/schemas/sales.ts
+++ b/apps/web/lib/zod/schemas/sales.ts
@@ -25,11 +25,11 @@ export const trackSaleRequestSchema = z.object({
.string()
.max(50)
.optional()
- .default("Purchase completed")
+ .default("Purchase")
.describe(
- "The name of the sale event. It can be used to track different types of event for example 'Purchase completed', 'Subscription created', etc.",
+ "The name of the sale event. It can be used to track different types of event for example 'Purchase', 'Upgrade', etc.",
)
- .openapi({ example: "Purchase completed" }),
+ .openapi({ example: "Purchase" }),
invoiceId: z
.string()
.nullish()
@@ -62,7 +62,7 @@ export const saleEventSchemaTB = clickEventSchemaTB
z.object({
timestamp: z.string().optional(), //autogenerated by Tinybird
event_id: z.string(),
- event_name: z.string().default("Purchase completed"),
+ event_name: z.string().default("Purchase"),
customer_id: z.string(),
payment_processor: z.string(),
amount: z.number(),