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 webhook logs backwards compatibility

Steven Teyfb54866c02c4
diff --git a/apps/web/lib/zod/schemas/webhooks.ts b/apps/web/lib/zod/schemas/webhooks.ts
index 38fe9fdbc0..96e08bb945 100644
--- a/apps/web/lib/zod/schemas/webhooks.ts
+++ b/apps/web/lib/zod/schemas/webhooks.ts
@@ -38,7 +38,10 @@ export const webhookEventSchemaTB = z.object({
event_id: z.string(),
webhook_id: z.string(),
message_id: z.string(), // QStash message ID
- event: z.enum(WEBHOOK_TRIGGERS),
+ event: z.enum([
+ "partner.created", // keeping this for backwards compatibility
+ ...WEBHOOK_TRIGGERS,
+ ]),
url: z.string(),
http_status: z.number(),
request_body: z.string(),