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.

increase eventName max length

Steven Teye3104d4739b4
diff --git a/apps/web/lib/zod/schemas/leads.ts b/apps/web/lib/zod/schemas/leads.ts
index f7f85e2c56..a84b8e5604 100644
--- a/apps/web/lib/zod/schemas/leads.ts
+++ b/apps/web/lib/zod/schemas/leads.ts
@@ -16,7 +16,7 @@ export const trackLeadRequestSchema = z.object({
.string({ required_error: "eventName is required" })
.trim()
.min(1, "eventName is required")
- .max(50)
+ .max(255)
.describe("The name of the event to track.")
.openapi({ example: "Sign up" }),
externalId: z
diff --git a/apps/web/lib/zod/schemas/sales.ts b/apps/web/lib/zod/schemas/sales.ts
index ea087a033e..c4abffe991 100644
--- a/apps/web/lib/zod/schemas/sales.ts
+++ b/apps/web/lib/zod/schemas/sales.ts
@@ -33,7 +33,7 @@ export const trackSaleRequestSchema = z.object({
.describe("The payment processor via which the sale was made."),
eventName: z
.string()
- .max(50)
+ .max(255)
.optional()
.default("Purchase")
.describe(