mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
lint
This commit is contained in:
parent
3aa8230e17
commit
35d14b33ca
1 changed files with 5 additions and 3 deletions
|
@ -1,5 +1,8 @@
|
||||||
import { DownloadManager, Ludusavi, startMainLoop } from "./services";
|
import { DownloadManager, Ludusavi, startMainLoop } from "./services";
|
||||||
import { downloadQueueRepository, userPreferencesRepository } from "./repository";
|
import {
|
||||||
|
downloadQueueRepository,
|
||||||
|
userPreferencesRepository,
|
||||||
|
} from "./repository";
|
||||||
import { UserPreferences } from "./entity";
|
import { UserPreferences } from "./entity";
|
||||||
import { RealDebridClient } from "./services/download/real-debrid";
|
import { RealDebridClient } from "./services/download/real-debrid";
|
||||||
import { HydraApi } from "./services/hydra-api";
|
import { HydraApi } from "./services/hydra-api";
|
||||||
|
@ -24,7 +27,6 @@ const loadState = async (userPreferences: UserPreferences | null) => {
|
||||||
uploadGamesBatch();
|
uploadGamesBatch();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
const [nextQueueItem] = await downloadQueueRepository.find({
|
const [nextQueueItem] = await downloadQueueRepository.find({
|
||||||
order: {
|
order: {
|
||||||
id: "DESC",
|
id: "DESC",
|
||||||
|
@ -36,7 +38,7 @@ const loadState = async (userPreferences: UserPreferences | null) => {
|
||||||
|
|
||||||
PythonRPC.spawn();
|
PythonRPC.spawn();
|
||||||
await sleep(1000);
|
await sleep(1000);
|
||||||
// wait for python process to start
|
// wait for python process to start
|
||||||
|
|
||||||
if (nextQueueItem?.game.status === "active") {
|
if (nextQueueItem?.game.status === "active") {
|
||||||
DownloadManager.startDownload(nextQueueItem.game);
|
DownloadManager.startDownload(nextQueueItem.game);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue