Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

fix: update getSubscriptionPlan to return default plan

YuTengjing1737b7fe30d6
diff --git a/src/business/server/user.ts b/src/business/server/user.ts
index b9f33e7ef85..afe88d18396 100644
--- a/src/business/server/user.ts
+++ b/src/business/server/user.ts
@@ -1,12 +1,12 @@
/* eslint-disable unused-imports/no-unused-vars, @typescript-eslint/no-unused-vars */
-import { type Plans, type ReferralStatusString } from '@lobechat/types';
+import { Plans, type ReferralStatusString } from '@lobechat/types';
export async function getReferralStatus(userId: string): Promise<ReferralStatusString | undefined> {
return undefined;
}
-export async function getSubscriptionPlan(userId: string): Promise<Plans | undefined> {
- return undefined;
+export async function getSubscriptionPlan(userId: string): Promise<Plans> {
+ return Plans.Free;
}
export async function initNewUserForBusiness(