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.

Update discount.ts

Kiran K03637bc48206
diff --git a/apps/web/lib/zod/schemas/discount.ts b/apps/web/lib/zod/schemas/discount.ts
index 01231963a0..0cceb43656 100644
--- a/apps/web/lib/zod/schemas/discount.ts
+++ b/apps/web/lib/zod/schemas/discount.ts
@@ -27,7 +27,7 @@ export const createDiscountSchema = z.object({
amount: z.number().min(0),
type: z.nativeEnum(RewardStructure).default("flat"),
maxDuration: maxDurationSchema,
- couponId: z.string().nullish(),
+ couponId: z.string(),
couponTestId: z.string().nullish(),
groupId: z.string(),
enableCouponTracking: z.boolean().default(false),