mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
call batch games on hydra start up
This commit is contained in:
parent
cf84bf56b3
commit
6179fb9cf6
1 changed files with 2 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue