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 max length to 10K

Steven Tey73bee20f0aa5
diff --git a/apps/web/lib/zod/schemas/leads.ts b/apps/web/lib/zod/schemas/leads.ts
index ab0c53f3d1..56f4cd9592 100644
--- a/apps/web/lib/zod/schemas/leads.ts
+++ b/apps/web/lib/zod/schemas/leads.ts
@@ -66,11 +66,11 @@ export const trackLeadRequestSchema = z.object({
.nullish()
.default(null)
.transform((val) => (val ? JSON.stringify(val) : null))
- .refine((val) => !val || val.length <= 500, {
- message: "Metadata must be less than 500 characters when stringified",
+ .refine((val) => !val || val.length <= 10000, {
+ message: "Metadata must be less than 10000 characters when stringified",
})
.describe(
- "Additional metadata to be stored with the lead event. Max 1000 characters.",
+ "Additional metadata to be stored with the lead event. Max 10,000 characters.",
),
mode: z
.enum(["async", "wait"])
diff --git a/apps/web/lib/zod/schemas/sales.ts b/apps/web/lib/zod/schemas/sales.ts
index 375000b818..a5a9867721 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 <= 500, {
- message: "Metadata must be less than 500 characters when stringified",
+ .refine((val) => !val || val.length <= 10000, {
+ message: "Metadata must be less than 10000 characters when stringified",
})
.describe(
- "Additional metadata to be stored with the sale event. Max 500 characters.",
+ "Additional metadata to be stored with the sale event. Max 10,000 characters.",
),
leadEventName: z
.string()