Merge pull request #566 from documenso/feat/plan-limits

feat: plan limits
This commit is contained in:
Lucas Smith
2023-10-17 14:30:18 +11:00
committed by GitHub
35 changed files with 755 additions and 291 deletions

View File

@ -41,7 +41,7 @@ export default async function handler(
},
});
if (user && user.Subscription.length > 0) {
if (user && user.Subscription) {
return res.status(200).json({
redirectUrl: `${process.env.NEXT_PUBLIC_WEBAPP_URL}/login`,
});