mirror of
https://github.com/sqlchat/sqlchat.git
synced 2025-08-02 14:01:59 +08:00
chore: minor subscription change
This commit is contained in:
@ -36,15 +36,15 @@ const SettingView = () => {
|
||||
</div>
|
||||
)}
|
||||
|
||||
{hasFeature("account") && (
|
||||
{hasFeature("payment") && (
|
||||
<div className="w-full border border-gray-200 dark:border-zinc-700 p-4 rounded-lg space-y-2">
|
||||
<AccountView />
|
||||
<PricingView />
|
||||
</div>
|
||||
)}
|
||||
|
||||
{hasFeature("payment") && session?.user?.subscription.plan != "PRO" && (
|
||||
{hasFeature("account") && (
|
||||
<div className="w-full border border-gray-200 dark:border-zinc-700 p-4 rounded-lg space-y-2">
|
||||
<PricingView />
|
||||
<AccountView />
|
||||
</div>
|
||||
)}
|
||||
|
||||
|
@ -56,7 +56,7 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse)
|
||||
metadata: {
|
||||
email: session?.user?.email!,
|
||||
plan: "PRO",
|
||||
description: "Pro 1 Year License (Early Bird)",
|
||||
description: "Pro 1 Year (Early Bird)",
|
||||
},
|
||||
},
|
||||
// Link customer if present otherwise pass email and let Stripe create a new customer.
|
||||
|
Reference in New Issue
Block a user