feat: adding change hero

This commit is contained in:
Chubby Granny Chaser 2024-10-05 02:25:46 +01:00
commit 58502aeb1f
No known key found for this signature in database
47 changed files with 3572 additions and 1461 deletions

View file

@ -7,6 +7,7 @@ import type { GameShop } from "@types";
import { steamGamesWorker } from "@main/workers";
import { createGame } from "@main/services/library-sync";
import { steamUrlBuilder } from "@shared";
import { updateLocalUnlockedAchivements } from "@main/services/achievements/update-local-unlocked-achivements";
const addGameToLibrary = async (
_event: Electron.IpcMainInvokeEvent,
@ -43,6 +44,8 @@ const addGameToLibrary = async (
});
}
updateLocalUnlockedAchivements(objectId);
const game = await gameRepository.findOne({
where: { objectID: objectId },
});