Merge branch 'main' into fix/adding-debounce-to-search

This commit is contained in:
Chubby Granny Chaser 2024-12-24 03:38:39 +00:00 committed by GitHub
commit 36800c6368
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 10 additions and 10 deletions

View file

@ -1,6 +1,7 @@
import { registerEvent } from "../register-event";
import { gameRepository } from "../../repository";
import { DownloadManager } from "@main/services";
import { Downloader } from "@shared";
const resumeGameSeed = async (
_event: Electron.IpcMainInvokeEvent,
@ -10,7 +11,7 @@ const resumeGameSeed = async (
where: {
id: gameId,
isDeleted: false,
downloader: 1,
downloader: Downloader.Torrent,
progress: 1,
},
});

View file

@ -9,6 +9,7 @@ import { RealDebridClient } from "./services/download/real-debrid";
import { HydraApi } from "./services/hydra-api";
import { uploadGamesBatch } from "./services/library-sync";
import { Aria2 } from "./services/aria2";
import { Downloader } from "@shared";
const loadState = async (userPreferences: UserPreferences | null) => {
import("./events");
@ -37,7 +38,7 @@ const loadState = async (userPreferences: UserPreferences | null) => {
const seedList = await gameRepository.find({
where: {
shouldSeed: true,
downloader: 1,
downloader: Downloader.Torrent,
progress: 1,
},
});

View file

@ -100,8 +100,6 @@ export class DownloadManager {
public static async watchDownloads() {
const status = await this.getDownloadStatus();
// status = await RealDebridDownloader.getStatus();
if (status) {
const { gameId, progress } = status;
const game = await gameRepository.findOne({