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.

fix the schema being skipped by zod

Kiran K58a8fe890689
diff --git a/apps/web/lib/webhook/schemas.ts b/apps/web/lib/webhook/schemas.ts
index f5ac6f05eb..0c884eb3ee 100644
--- a/apps/web/lib/webhook/schemas.ts
+++ b/apps/web/lib/webhook/schemas.ts
@@ -77,10 +77,5 @@ export const webhookPayloadSchema = z.object({
createdAt: z
.string()
.describe("The date and time when the event was created in UTC."),
- data: z.union([
- linkEventSchema,
- clickEventSchema,
- leadEventSchema,
- saleEventSchema,
- ]),
+ data: z.any().describe("The data associated with the event."),
});