fix: seeding causing python process to crash
Some checks are pending
Release / build (ubuntu-latest) (push) Waiting to run
Release / build (windows-latest) (push) Waiting to run

This commit is contained in:
Zamitto 2024-12-24 02:15:27 -03:00
parent e1a1136e05
commit 89bfb517fb
3 changed files with 15 additions and 4 deletions

View file

@ -10,6 +10,7 @@ import { HydraApi } from "./services/hydra-api";
import { uploadGamesBatch } from "./services/library-sync";
import { Aria2 } from "./services/aria2";
import { Downloader } from "@shared";
import { IsNull, Not } from "typeorm";
const loadState = async (userPreferences: UserPreferences | null) => {
import("./events");
@ -40,6 +41,7 @@ const loadState = async (userPreferences: UserPreferences | null) => {
shouldSeed: true,
downloader: Downloader.Torrent,
progress: 1,
uri: Not(IsNull()),
},
});