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;
|
throw error;
|
||||||
}
|
}
|
||||||
|
|
||||||
return ((data as any[]) || []).map(
|
return ((data as any[]) || []).map((row) =>
|
||||||
(row) =>
|
normalizeProfile(
|
||||||
({
|
{
|
||||||
...(row as AethexUserProfile),
|
...(row as AethexUserProfile),
|
||||||
user_type: (row as any).user_type || "community_member",
|
user_type: (row as any).user_type || "community_member",
|
||||||
experience_level: (row as any).experience_level || "beginner",
|
experience_level: (row as any).experience_level || "beginner",
|
||||||
}) as AethexUserProfile,
|
},
|
||||||
|
),
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue