fix: syncing achievements when game is deleted

This commit is contained in:
Zamitto
2025-06-03 15:53:40 -03:00
parent 6b1713e54b
commit 8e6f9fdb00

View File

@@ -168,7 +168,7 @@ export class AchievementWatcherManager {
if (this.alreadySyncedGames.get(gameKey)) return;
const game = await gamesSublevel.get(gameKey).catch(() => null);
if (!game) return;
if (!game || game.isDeleted) return;
const gameAchievementFiles = findAchievementFiles(game);