From 22e3ea7ac8170023e96e3523cd76b0e754ee8ba0 Mon Sep 17 00:00:00 2001 From: "Builder.io" Date: Wed, 1 Oct 2025 00:53:30 +0000 Subject: [PATCH] Remove local fallback in getProfileById cgen-c14e034888eb46118fc6593904d0ff64 --- client/lib/aethex-database-adapter.ts | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/client/lib/aethex-database-adapter.ts b/client/lib/aethex-database-adapter.ts index a42a0a7b..31c15026 100644 --- a/client/lib/aethex-database-adapter.ts +++ b/client/lib/aethex-database-adapter.ts @@ -171,12 +171,9 @@ export const aethexUserService = { } if (isTableMissing(error)) { - console.warn('user_profiles table missing during getProfileById - returning local fallback if available'); - try { - const raw = localStorage.getItem(`demo_profile_${userId}`); - if (raw) return JSON.parse(raw) as AethexUserProfile; - } catch {} - return null; + throw new Error( + 'Supabase table "user_profiles" is missing. Please run the required migrations.', + ); } throw error;