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

This commit is contained in:
bennykok committed 2024-01-26 00:28:05 +08:00
1 parent 6f0499c657
commit 8305134a8e
2 files changed
+3 -3

No files matched your search

@@ -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",