feat: saving achievements on open launcher

This commit is contained in:
Zamitto
2024-09-24 13:04:46 -03:00
parent 8fb62af0cf
commit 500cd2a531
7 changed files with 63 additions and 58 deletions

View File

@@ -16,6 +16,7 @@ import { publishNewRepacksNotifications } from "./services/notifications";
import { MoreThan } from "typeorm";
import { HydraApi } from "./services/hydra-api";
import { uploadGamesBatch } from "./services/library-sync";
import { saveAllLocalSteamAchivements } from "./events/achievements/services/save-all-local-steam-achivements";
const loadState = async (userPreferences: UserPreferences | null) => {
RepacksManager.updateRepacks();
@@ -58,6 +59,8 @@ const loadState = async (userPreferences: UserPreferences | null) => {
if (newRepacksCount > 0) publishNewRepacksNotifications(newRepacksCount);
});
saveAllLocalSteamAchivements();
};
userPreferencesRepository