refactor: clean up reset game achievements logic

This commit is contained in:
Hachi-R 2024-12-17 13:55:45 -03:00
parent ac6eb247df
commit afcfcbf482

View file

@ -31,7 +31,6 @@ const resetGameAchievements = async (
{ objectId: game.objectID }, { objectId: game.objectID },
{ {
unlockedAchievements: null, unlockedAchievements: null,
achievements: null,
} }
); );
@ -40,7 +39,7 @@ const resetGameAchievements = async (
const gameAchievements = await getUnlockedAchievements( const gameAchievements = await getUnlockedAchievements(
game.objectID, game.objectID,
game.shop, game.shop,
false true
); );
WindowManager.mainWindow?.webContents.send( WindowManager.mainWindow?.webContents.send(