refactor: clean up code

This commit is contained in:
Hachi-R 2024-12-22 20:20:46 -03:00
parent 859d849d36
commit db01980eb8
7 changed files with 15 additions and 37 deletions

View file

@ -1,8 +1,5 @@
import { Ludusavi, startMainLoop } from "./services";
import {
// downloadQueueRepository,
userPreferencesRepository,
} from "./repository";
import { userPreferencesRepository } from "./repository";
import { UserPreferences } from "./entity";
import { RealDebridClient } from "./services/download/real-debrid";
import { HydraApi } from "./services/hydra-api";
@ -25,24 +22,7 @@ const loadState = async (userPreferences: UserPreferences | null) => {
uploadGamesBatch();
});
// const [nextQueueItem] = await downloadQueueRepository.find({
// order: {
// id: "DESC",
// },
// relations: {
// game: true,
// },
// });
PythonRPC.spawn();
// start download
// if (nextQueueItem?.game.status === "active") {
// DownloadManager.startDownload(nextQueueItem.game);
// } else {
// PythonInstance.spawn();
// }
startMainLoop();
};