feat: code review

This commit is contained in:
Zamitto 2024-07-29 19:10:53 -03:00
parent 10d7e0e8aa
commit d60242a62c
4 changed files with 62 additions and 67 deletions

View file

@ -50,7 +50,13 @@ const getUser = async (
})
);
return { ...profile, libraryGames, recentGames, friends };
return {
...profile,
libraryGames,
recentGames,
friends: friends.friends,
totalFriends: friends.totalFriends,
};
} catch (err) {
return null;
}