Remove local fallback in getProfileById

cgen-c14e034888eb46118fc6593904d0ff64
This commit is contained in:
Builder.io 2025-10-01 00:53:30 +00:00
parent ec086655df
commit 22e3ea7ac8

View file

@ -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;