fix: build errors

This commit is contained in:
Mythie
2023-10-16 17:38:41 +11:00
parent 652af26754
commit 6ba4ff1c17
4 changed files with 5 additions and 19 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`,
});