chore: disabling resuming real debrid downloads when real debrid is not set

This commit is contained in:
Chubby Granny Chaser 2024-05-30 00:13:53 +01:00
parent 4d61b8586d
commit a34a774fb7
No known key found for this signature in database
17 changed files with 83 additions and 311 deletions

View file

@ -1,6 +1,8 @@
import path from "node:path";
import fs from "node:fs";
import { In } from "typeorm";
import { gameRepository } from "@main/repository";
import { getDownloadsPath } from "../helpers/get-downloads-path";
@ -14,7 +16,7 @@ const deleteGameFolder = async (
const game = await gameRepository.findOne({
where: {
id: gameId,
status: "removed",
status: In(["removed", "complete"]),
isDeleted: false,
},
});