diff --git a/db/profile.ts b/db/profile.ts index 3faf8c4..89380c5 100644 --- a/db/profile.ts +++ b/db/profile.ts @@ -9,13 +9,6 @@ export const getProfileByUserId = async (userId: string) => { .eq("user_id", userId) .single() - - if (error) { - console.error(`Error fetching profile: ${error.message}`) // 错误日志 - throw new Error(error.message) - } - - if (!profile) { throw new Error(error.message) }