fix: make sure we were able to detect the pricing plan correct when not in a org

This commit is contained in:
bennykok
2024-01-26 00:28:05 +08:00
parent 6f0499c657
commit 8305134a8e
2 changed files with 3 additions and 3 deletions
@@ -89,7 +89,7 @@ export async function POST(req: Request) {
.insert(subscriptionStatusTable)
.values({
stripe_customer_id: customerId,
org_id: orgId,
org_id: orgId && orgId.length > 0 && orgId != "null" ? orgId : null,
user_id: userId,
subscription_id: subscriptionId,
plan: plan as "pro" | "enterprise" | "basic",