feat: enhance seed status retrieval

This commit is contained in:
Hachi-R 2024-12-21 10:15:04 -03:00
parent d7e06d6622
commit 5fbf0baa0f
3 changed files with 21 additions and 2 deletions

View file

@ -144,6 +144,15 @@ export class DownloadManager {
}
public static async getSeedStatus() {
const seedStatus = await PythonRPC.rpc
.get<LibtorrentPayload[] | null>("/seed-status")
.then((results) => {
if (results === null) return [];
return results.data;
});
console.log(seedStatus);
// const gamesToSeed = await gameRepository.find({
// where: { shouldSeed: true, isDeleted: false },
// });