mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
Merge branch 'feature/game-achievements' into chore/test-preview
This commit is contained in:
commit
3ed4547dfe
13 changed files with 484 additions and 364 deletions
|
|
@ -9,12 +9,11 @@ const getGameStats = async (
|
|||
objectId: string,
|
||||
shop: GameShop
|
||||
) => {
|
||||
const response = await HydraApi.get<GameStats>(
|
||||
return HydraApi.get<GameStats>(
|
||||
`/games/stats`,
|
||||
{ objectId, shop },
|
||||
{ needsAuth: false }
|
||||
);
|
||||
return response;
|
||||
};
|
||||
|
||||
registerEvent("getGameStats", getGameStats);
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@ const addGameToLibrary = async (
|
|||
});
|
||||
}
|
||||
|
||||
updateLocalUnlockedAchivements(true, objectID);
|
||||
updateLocalUnlockedAchivements(objectID);
|
||||
|
||||
const game = await gameRepository.findOne({ where: { objectID } });
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue