feat: adding time played / last played

This commit is contained in:
Zamitto 2024-06-14 14:46:30 -03:00
parent d05150a078
commit fa2a92d5ed
6 changed files with 70 additions and 13 deletions

View file

@ -24,7 +24,11 @@ const getUserProfile = async (
? getSteamAppAsset("icon", game.objectId, steamGame.clientIcon)
: null;
return { ...convertSteamGameToCatalogueEntry(steamGame), iconUrl };
return {
...game,
...convertSteamGameToCatalogueEntry(steamGame),
iconUrl,
};
})
);
@ -37,7 +41,11 @@ const getUserProfile = async (
? getSteamAppAsset("icon", game.objectId, steamGame.clientIcon)
: null;
return { ...convertSteamGameToCatalogueEntry(steamGame), iconUrl };
return {
...game,
...convertSteamGameToCatalogueEntry(steamGame),
iconUrl,
};
})
);