Ship free-tier watermark policy (2 clean renders) and align pricing/legal copy.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
co-authored by
Cursor
parent
26c4b22fbb
commit
8f6b894f80
@@ -211,6 +211,7 @@ export async function adminResetUserCredits(
|
||||
where: { id: userId },
|
||||
data: {
|
||||
plan,
|
||||
subscriptionStatus: plan === "PREMIUM" ? "pro" : "free",
|
||||
monthlyCredits,
|
||||
videosUsed: used,
|
||||
extraCredits: cappedExtras,
|
||||
@@ -245,6 +246,7 @@ export async function activateProPlan(
|
||||
where: { id: userId },
|
||||
data: {
|
||||
plan: "PREMIUM",
|
||||
subscriptionStatus: "pro",
|
||||
subscribedAt: new Date(),
|
||||
...(opts.stripeCustomerId !== undefined
|
||||
? { stripeCustomerId: opts.stripeCustomerId }
|
||||
@@ -267,6 +269,7 @@ export async function downgradeToFreePlan(userId: string) {
|
||||
where: { id: userId },
|
||||
data: {
|
||||
plan: "FREE",
|
||||
subscriptionStatus: "free",
|
||||
stripeSubscriptionId: null,
|
||||
subscribedAt: null,
|
||||
cardLast4: null,
|
||||
|
||||
Reference in New Issue
Block a user