Remove fallback logic from listProfiles
cgen-75684a6c63664205838d8ba1efa0a8c0
This commit is contained in:
parent
34c6469505
commit
68a88ea1b4
1 changed files with 0 additions and 15 deletions
|
|
@ -303,21 +303,6 @@ export const aethexUserService = {
|
|||
},
|
||||
|
||||
async listProfiles(limit = 50): Promise<AethexUserProfile[]> {
|
||||
if (!isSupabaseConfigured) {
|
||||
return mockAuth.getAllProfiles().slice(0, limit).map((row) =>
|
||||
normalizeProfile(
|
||||
{
|
||||
...row,
|
||||
user_type: (row as any)?.user_type || "game_developer",
|
||||
experience_level: (row as any)?.experience_level || "beginner",
|
||||
total_xp: (row as any)?.total_xp ?? 0,
|
||||
level: (row as any)?.level ?? 1,
|
||||
},
|
||||
(row as any)?.email,
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
ensureSupabase();
|
||||
|
||||
const { data, error } = await supabase
|
||||
|
|
|
|||
Loading…
Reference in a new issue