feat: WIP validate cloud subscription

This commit is contained in:
Zamitto
2024-10-16 01:36:36 -03:00
parent 5c4ddd9b7a
commit 4820109b8d
3 changed files with 59 additions and 27 deletions

View File

@@ -115,10 +115,14 @@ export const mergeAchievements = async (
const mergedLocalAchievements = unlockedAchievements.concat(newAchievements);
if (game?.remoteId) {
return HydraApi.put("/profile/games/achievements", {
id: game.remoteId,
achievements: mergedLocalAchievements,
})
return HydraApi.put(
"/profile/games/achievements",
{
id: game.remoteId,
achievements: mergedLocalAchievements,
},
{ needsCloud: true }
)
.then((response) => {
return saveAchievementsOnLocal(
response.objectId,