The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
fix is_self_referral schema to nullable
Steven Teyfdc16ea1284e
diff --git a/apps/web/lib/firstpromoter/schemas.ts b/apps/web/lib/firstpromoter/schemas.tsindex ab98256187..8dd6172723 100644--- a/apps/web/lib/firstpromoter/schemas.ts+++ b/apps/web/lib/firstpromoter/schemas.ts@@ -110,7 +110,7 @@ export const firstPromoterCommissionSchema = z.object({id: z.number(),status: z.enum(["pending", "approved", "denied"]),metadata: z.record(z.string(), z.any()).nullable(),- is_self_referral: z.boolean(),+ is_self_referral: z.boolean().nullable(),commission_type: z.enum(["sale", "custom"]),sale_amount: z.number(),amount: z.number(),