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.

make userId nullable

Kiran K1d80cacf395a
diff --git a/apps/web/lib/zod/schemas/links.ts b/apps/web/lib/zod/schemas/links.ts
index a2246e26c1..81e6383b40 100644
--- a/apps/web/lib/zod/schemas/links.ts
+++ b/apps/web/lib/zod/schemas/links.ts
@@ -531,6 +531,7 @@ export const LinkSchema = z
.describe("The UTM content of the short link."),
userId: z
.string()
+ .nullable()
.describe("The user ID of the creator of the short link."),
workspaceId: z.string().describe("The workspace ID of the short link."),
clicks: z