mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
feat: make getUserFriends throws exception
This commit is contained in:
parent
4dcd97bce8
commit
f631cd3013
2 changed files with 8 additions and 16 deletions
|
@ -13,7 +13,9 @@ const getUser = async (
|
|||
try {
|
||||
const [profile, friends] = await Promise.all([
|
||||
HydraApi.get(`/user/${userId}`),
|
||||
getUserFriends(userId, 12, 0),
|
||||
getUserFriends(userId, 12, 0).catch(() => {
|
||||
return { totalFriends: 0, friends: [] };
|
||||
}),
|
||||
]);
|
||||
|
||||
const recentGames = await Promise.all(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue