This commit is contained in:
hailin 2025-04-21 13:17:00 +08:00
parent 95ed21ff8c
commit 5c659f2f38
1 changed files with 0 additions and 7 deletions

View File

@ -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)
}