Normalize listProfiles mapping
cgen-a703a5931fbd4e5aa66fd17c7fe87cb9
This commit is contained in:
parent
dc7aeef595
commit
d9903c14cd
1 changed files with 5 additions and 4 deletions
|
|
@ -312,13 +312,14 @@ export const aethexUserService = {
|
|||
throw error;
|
||||
}
|
||||
|
||||
return ((data as any[]) || []).map(
|
||||
(row) =>
|
||||
({
|
||||
return ((data as any[]) || []).map((row) =>
|
||||
normalizeProfile(
|
||||
{
|
||||
...(row as AethexUserProfile),
|
||||
user_type: (row as any).user_type || "community_member",
|
||||
experience_level: (row as any).experience_level || "beginner",
|
||||
}) as AethexUserProfile,
|
||||
},
|
||||
),
|
||||
);
|
||||
},
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue