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 48 months recurring option

Steven Tey3242721db8e3
diff --git a/apps/web/lib/zod/schemas/misc.ts b/apps/web/lib/zod/schemas/misc.ts
index 098f9d3ad3..e85efaa153 100644
--- a/apps/web/lib/zod/schemas/misc.ts
+++ b/apps/web/lib/zod/schemas/misc.ts
@@ -4,7 +4,7 @@ import { GOOGLE_FAVICON_URL, R2_URL } from "@dub/utils";
import { WorkspaceRole } from "@prisma/client";
import { fileTypeFromBuffer } from "file-type";
-export const RECURRING_MAX_DURATIONS = [0, 1, 3, 6, 12, 18, 24, 36];
+export const RECURRING_MAX_DURATIONS = [0, 1, 3, 6, 12, 18, 24, 36, 48];
export const planSchema = z.enum(plans).describe("The plan of the workspace.");
diff --git a/packages/prisma/schema/discount.prisma b/packages/prisma/schema/discount.prisma
index 76bb8dfef5..d8f58b9ba0 100644
--- a/packages/prisma/schema/discount.prisma
+++ b/packages/prisma/schema/discount.prisma
@@ -3,7 +3,7 @@ model Discount {
programId String
amount Int @default(0)
type RewardStructure @default(percentage)
- maxDuration Int? // in months (0 -> one-time purchase, 1, 3, 6, 12, 18, 24, 36 -> months, null -> lifetime)
+ maxDuration Int? // in months (0 -> one-time purchase, 1, 3, 6, 12, 18, 24, 36, 48 -> months, null -> lifetime)
description String?
couponId String?
couponTestId String?