From 7f127fdc5c4bf1f36a0206198b91f2f8b52c1f49 Mon Sep 17 00:00:00 2001 From: JackEnx Date: Sun, 21 Apr 2024 19:17:47 -0300 Subject: [PATCH] fix: change install validation to remove download game only --- src/main/events/library/open-game-installer.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/events/library/open-game-installer.ts b/src/main/events/library/open-game-installer.ts index acd3e343..796e063b 100644 --- a/src/main/events/library/open-game-installer.ts +++ b/src/main/events/library/open-game-installer.ts @@ -23,7 +23,7 @@ const openGameInstaller = async ( ); if (!fs.existsSync(gamePath)) { - await gameRepository.delete({ id: gameId }); + await gameRepository.update({ id: gameId }, { status: null }); return true; }