The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Omit props from update links endpoint
Steven Teyd2effd2d6199
diff --git a/apps/web/lib/zod/schemas/links.ts b/apps/web/lib/zod/schemas/links.tsindex 41bb27ab6a..ba9162cdba 100644--- a/apps/web/lib/zod/schemas/links.ts+++ b/apps/web/lib/zod/schemas/links.ts@@ -460,7 +460,9 @@ export const createLinkBodySchemaAsync = createLinkBodySchema.extend({image: z.union([base64ImageSchema, publicHostedImageSchema]).nullish(),});-export const updateLinkBodySchema = createLinkBodySchemaAsync.partial();+export const updateLinkBodySchema = createLinkBodySchemaAsync+ .omit({ keyLength: true, prefix: true })+ .partial();export const bulkCreateLinksBodySchema = z.array(createLinkBodySchema)@@ -489,6 +491,7 @@ export const bulkUpdateLinksBodySchema = z.object({domain: true,key: true,externalId: true,+ keyLength: true,prefix: true,}).merge(