From 5c659f2f38981392bf65b63cb5a8b079b244f7b4 Mon Sep 17 00:00:00 2001 From: hailin Date: Mon, 21 Apr 2025 13:17:00 +0800 Subject: [PATCH] . --- db/profile.ts | 7 ------- 1 file changed, 7 deletions(-) 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) }