The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Update index.test.ts
Kiran K3c3ecdf60904
diff --git a/apps/web/tests/webhooks/index.test.ts b/apps/web/tests/webhooks/index.test.tsindex fe60a65e1b..9f19afd684 100644--- a/apps/web/tests/webhooks/index.test.ts+++ b/apps/web/tests/webhooks/index.test.ts@@ -34,7 +34,10 @@ const saleWebhookEventSchemaExtended = saleWebhookEventSchema.extend({const enrolledPartnerSchemaExtended = EnrolledPartnerSchema.extend({createdAt: z.string().transform((str) => new Date(str)),- payoutsEnabledAt: z.string().transform((str) => new Date(str)),+ payoutsEnabledAt: z+ .string()+ .transform((str) => (str ? new Date(str) : null))+ .nullable(),});const eventSchemas: Record<WebhookTrigger, z.ZodSchema> = {