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.

add back deprecated fields

Steven Teyd862892929df
diff --git a/apps/web/lib/zod/schemas/discount.ts b/apps/web/lib/zod/schemas/discount.ts
index 923c2cc31c..29d89bf6c8 100644
--- a/apps/web/lib/zod/schemas/discount.ts
+++ b/apps/web/lib/zod/schemas/discount.ts
@@ -10,6 +10,11 @@ export const DiscountSchema = z.object({
couponId: z.string().nullable(),
couponTestId: z.string().nullable(),
partnersCount: z.number().nullish(),
+ duration: z
+ .number()
+ .nullish()
+ .describe("Deprecated: Use `maxDuration` instead"),
+ interval: z.string().nullish().describe("Deprecated: Defaults to `month`"),
});
export const createDiscountSchema = z.object({