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.

nullish

Steven Teyb378c9401bea
diff --git a/apps/web/lib/zod/schemas/customers.ts b/apps/web/lib/zod/schemas/customers.ts
index 8937465e16..3830a7b978 100644
--- a/apps/web/lib/zod/schemas/customers.ts
+++ b/apps/web/lib/zod/schemas/customers.ts
@@ -72,14 +72,14 @@ export const CustomerEnrichedSchema = CustomerSchema.extend({
key: true,
shortLink: true,
programId: true,
- }),
+ }).nullish(),
partner: PartnerSchema.pick({
id: true,
name: true,
email: true,
image: true,
- }),
- discount: DiscountSchema.nullable(),
+ }).nullish(),
+ discount: DiscountSchema.nullish(),
});
export const CUSTOMERS_MAX_PAGE_SIZE = 100;