feat: refactor

This commit is contained in:
Zamitto 2024-09-25 18:16:32 -03:00
parent f98432f6c6
commit 25cfdb50d8
7 changed files with 28 additions and 12 deletions

View file

@ -4,6 +4,7 @@ import { IsNull } from "typeorm";
import { HydraApi } from "../hydra-api";
import { mergeWithRemoteGames } from "./merge-with-remote-games";
import { WindowManager } from "../window-manager";
import { saveAllLocalSteamAchivements } from "../achievements/save-all-local-steam-achivements";
export const uploadGamesBatch = async () => {
const games = await gameRepository.find({
@ -28,6 +29,8 @@ export const uploadGamesBatch = async () => {
await mergeWithRemoteGames();
await saveAllLocalSteamAchivements();
if (WindowManager.mainWindow)
WindowManager.mainWindow.webContents.send("on-library-batch-complete");
};