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.

account for undefined CUSTOMER_COUNT

Steven Tey97e10739516a
diff --git a/apps/web/lib/partnerstack/schemas.ts b/apps/web/lib/partnerstack/schemas.ts
index a90080c8ba..19985b8282 100644
--- a/apps/web/lib/partnerstack/schemas.ts
+++ b/apps/web/lib/partnerstack/schemas.ts
@@ -42,6 +42,8 @@ export const partnerStackPartner = z.object({
stats: z.object({
CUSTOMER_COUNT: z
.number()
+ .optional()
+ .default(0)
.describe("Only import if CUSTOMER_COUNT is greater than 0."),
}),
group: z