The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
update `updateLinkBodySchema` to make it optional
Kiran K4ce90a057c10
diff --git a/apps/web/lib/zod/schemas/links.ts b/apps/web/lib/zod/schemas/links.tsindex f5cd64b729..358637ceb8 100644--- a/apps/web/lib/zod/schemas/links.ts+++ b/apps/web/lib/zod/schemas/links.ts@@ -217,7 +217,7 @@ export const createLinkBodySchema = z.object({),});-export const updateLinkBodySchema = createLinkBodySchema.partial();+export const updateLinkBodySchema = createLinkBodySchema.partial().optional();export const bulkCreateLinksBodySchema = z.array(createLinkBodySchema)