Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.
chore: don't downgrade users yet
Marc Seitzd68c394523cd
diff --git a/app/api/cron/upgrade/route.ts b/app/api/cron/upgrade/route.tsindex 7fd2d422..3af6e092 100644--- a/app/api/cron/upgrade/route.ts+++ b/app/api/cron/upgrade/route.ts@@ -113,18 +113,19 @@ export async function POST(req: Request) {}}+ // TODO: enable on 14.11.2023// downgrade the user to free if user has 0 day left on trial- if (userDaysLeft == 0) {- return await Promise.allSettled([- log(- `Downgrade to free for user: *${id}* is expiring in ${userDaysLeft} days, email sent.`,- ),- prisma.user.update({- where: { id },- data: { plan: "free" },- }),- ]);- }+ // if (userDaysLeft == 0) {+ // return await Promise.allSettled([+ // log(+ // `Downgrade to free for user: *${id}* is expiring in ${userDaysLeft} days, email sent.`,+ // ),+ // prisma.user.update({+ // where: { id },+ // data: { plan: "free" },+ // }),+ // ]);+ // }}),);return NextResponse.json(results);