feat: adding new messages to hero panel

This commit is contained in:
Chubby Granny Chaser 2024-05-24 00:26:21 +01:00
parent a240c3ae24
commit d431c01d1b
No known key found for this signature in database
28 changed files with 398 additions and 358 deletions

View file

@ -5,8 +5,8 @@ import {
getNewRepacksFromUser,
getNewRepacksFromXatab,
getNewRepacksFromOnlineFix,
startProcessWatcher,
DownloadManager,
startMainLoop,
} from "./services";
import {
gameRepository,
@ -23,7 +23,7 @@ import { orderBy } from "lodash-es";
import { SteamGame } from "@types";
import { Not } from "typeorm";
startProcessWatcher();
startMainLoop();
const track1337xUsers = async (existingRepacks: Repack[]) => {
for (const repacker of repackersOn1337x) {
@ -88,8 +88,6 @@ const loadState = async (userPreferences: UserPreferences | null) => {
if (userPreferences?.realDebridApiToken)
await RealDebridClient.authorize(userPreferences?.realDebridApiToken);
await DownloadManager.connect();
const game = await gameRepository.findOne({
where: {
status: "active",
@ -99,9 +97,7 @@ const loadState = async (userPreferences: UserPreferences | null) => {
relations: { repack: true },
});
if (game) {
DownloadManager.startDownload(game.id);
}
if (game) DownloadManager.startDownload(game.id);
};
userPreferencesRepository