Merge branch 'feature/game-achievements' into chore/test-preview

This commit is contained in:
Zamitto
2024-10-03 21:11:16 -03:00
13 changed files with 484 additions and 364 deletions

View File

@@ -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);

View File

@@ -44,7 +44,7 @@ const addGameToLibrary = async (
});
}
updateLocalUnlockedAchivements(true, objectID);
updateLocalUnlockedAchivements(objectID);
const game = await gameRepository.findOne({ where: { objectID } });