mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
feat: adding new messages to hero panel
This commit is contained in:
parent
a240c3ae24
commit
d431c01d1b
28 changed files with 398 additions and 358 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue