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

Steven Tey41b7148a03bd
diff --git a/apps/web/lib/zod/schemas/links.ts b/apps/web/lib/zod/schemas/links.ts
index 5788828faf..145807f6ea 100644
--- a/apps/web/lib/zod/schemas/links.ts
+++ b/apps/web/lib/zod/schemas/links.ts
@@ -565,4 +565,6 @@ export const linkEventSchema = LinkSchema.extend({
updatedAt: z.coerce.date(),
lastClicked: z.coerce.date(),
expiresAt: z.coerce.date(),
+ // userId can be null
+ userId: z.string().nullable(),
});