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.

Update links.ts

Kiran K4f08986bc2f5
diff --git a/apps/web/lib/zod/schemas/links.ts b/apps/web/lib/zod/schemas/links.ts
index cc19ddfcd9..91ac93079b 100644
--- a/apps/web/lib/zod/schemas/links.ts
+++ b/apps/web/lib/zod/schemas/links.ts
@@ -432,7 +432,7 @@ export const createLinkBodySchema = z.object({
});
export const createLinkBodySchemaAsync = createLinkBodySchema.extend({
- image: z.union([base64ImageSchema, publicHostedImageSchema]),
+ image: z.union([base64ImageSchema, publicHostedImageSchema]).nullish(),
});
export const updateLinkBodySchema = createLinkBodySchemaAsync.partial();