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.

reduce maxlength to 500

Steven Tey6c9d1f8cf78c
diff --git a/apps/web/lib/zod/schemas/leads.ts b/apps/web/lib/zod/schemas/leads.ts
index 86ad736713..ab0c53f3d1 100644
--- a/apps/web/lib/zod/schemas/leads.ts
+++ b/apps/web/lib/zod/schemas/leads.ts
@@ -66,8 +66,8 @@ export const trackLeadRequestSchema = z.object({
.nullish()
.default(null)
.transform((val) => (val ? JSON.stringify(val) : null))
- .refine((val) => !val || val.length <= 1000, {
- message: "Metadata must be less than 1000 characters when stringified",
+ .refine((val) => !val || val.length <= 500, {
+ message: "Metadata must be less than 500 characters when stringified",
})
.describe(
"Additional metadata to be stored with the lead event. Max 1000 characters.",
diff --git a/apps/web/lib/zod/schemas/sales.ts b/apps/web/lib/zod/schemas/sales.ts
index 9de60c2f4c..375000b818 100644
--- a/apps/web/lib/zod/schemas/sales.ts
+++ b/apps/web/lib/zod/schemas/sales.ts
@@ -57,11 +57,11 @@ export const trackSaleRequestSchema = z.object({
.nullish()
.default(null)
.transform((val) => (val ? JSON.stringify(val) : null))
- .refine((val) => !val || val.length <= 1000, {
- message: "Metadata must be less than 1000 characters when stringified",
+ .refine((val) => !val || val.length <= 500, {
+ message: "Metadata must be less than 500 characters when stringified",
})
.describe(
- "Additional metadata to be stored with the sale event. Max 1000 characters.",
+ "Additional metadata to be stored with the sale event. Max 500 characters.",
),
leadEventName: z
.string()