From 6179fb9cf66e9491ff7d96c4f31cee717209e700 Mon Sep 17 00:00:00 2001 From: Zamitto <167933696+zamitto@users.noreply.github.com> Date: Tue, 18 Jun 2024 21:49:41 -0300 Subject: [PATCH] call batch games on hydra start up --- src/main/main.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/main.ts b/src/main/main.ts index f1a365fc..6c82fe34 100644 --- a/src/main/main.ts +++ b/src/main/main.ts @@ -10,7 +10,7 @@ import { fetchDownloadSourcesAndUpdate } from "./helpers"; import { publishNewRepacksNotifications } from "./services/notifications"; import { MoreThan } from "typeorm"; import { HydraApi } from "./services/hydra-api"; -import { getRemoteGames } from "./services/library-sync"; +import { getRemoteGames, uploadBatchGames } from "./services/library-sync"; startMainLoop(); @@ -24,6 +24,7 @@ const loadState = async (userPreferences: UserPreferences | null) => { HydraApi.setupApi().then(async () => { if (HydraApi.isLoggedIn()) { + await uploadBatchGames(); getRemoteGames(); } });