From f22896303dde41cd5a4098b76707020afe1bc80b Mon Sep 17 00:00:00 2001 From: Hachi-R Date: Thu, 7 Nov 2024 20:35:33 -0300 Subject: [PATCH] lint --- .../migrations/20241107211345_add_should_seed_colum.ts | 2 +- src/main/services/download/python-instance.ts | 6 +----- src/renderer/src/pages/downloads/download-group.tsx | 8 ++------ 3 files changed, 4 insertions(+), 12 deletions(-) diff --git a/src/main/migrations/20241107211345_add_should_seed_colum.ts b/src/main/migrations/20241107211345_add_should_seed_colum.ts index 13d9c1ed..60be0730 100644 --- a/src/main/migrations/20241107211345_add_should_seed_colum.ts +++ b/src/main/migrations/20241107211345_add_should_seed_colum.ts @@ -14,4 +14,4 @@ export const AddShouldSeedColumn: HydraMigration = { return table.dropColumn("shouldSeed"); }); }, -}; \ No newline at end of file +}; diff --git a/src/main/services/download/python-instance.ts b/src/main/services/download/python-instance.ts index 5f60a234..3b397d8a 100644 --- a/src/main/services/download/python-instance.ts +++ b/src/main/services/download/python-instance.ts @@ -67,12 +67,8 @@ export class PythonInstance { ); if (response.data && response.data.length > 0) { - for (const seed of response.data) { - await gameRepository.update( - { id: seed.gameId }, - { status: "seeding" } - ); + await gameRepository.update({ id: seed.gameId }, { status: "seeding" }); } } diff --git a/src/renderer/src/pages/downloads/download-group.tsx b/src/renderer/src/pages/downloads/download-group.tsx index 26d2227e..b69dba34 100644 --- a/src/renderer/src/pages/downloads/download-group.tsx +++ b/src/renderer/src/pages/downloads/download-group.tsx @@ -172,15 +172,11 @@ export function DownloadGroup({ {seed && game.shouldSeed && ( - + )} {seed && !game.shouldSeed && ( - + )} );