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 Kf9204666181e
diff --git a/apps/web/lib/zod/schemas/discount.ts b/apps/web/lib/zod/schemas/discount.ts
index 8cac80ee6d..923c2cc31c 100644
--- a/apps/web/lib/zod/schemas/discount.ts
+++ b/apps/web/lib/zod/schemas/discount.ts
@@ -4,7 +4,7 @@ import { getPaginationQuerySchema, maxDurationSchema } from "./misc";
export const DiscountSchema = z.object({
id: z.string(),
- amount: z.number().nullable(),
+ amount: z.number(),
type: z.nativeEnum(CommissionType),
maxDuration: z.number().nullable(),
couponId: z.string().nullable(),