feat: accumulate ticks when request to update playtime fails

This commit is contained in:
Zamitto
2024-09-13 21:02:59 -03:00
parent f439b6809c
commit 608a53e8df
5 changed files with 31 additions and 31 deletions

View File

@@ -54,7 +54,7 @@ const addGameToLibrary = async (
const game = await gameRepository.findOne({ where: { objectID } });
createGame(game!);
createGame(game!).catch(() => {});
});
};

View File

@@ -97,7 +97,7 @@ const startGameDownload = async (
},
});
createGame(updatedGame!);
createGame(updatedGame!).catch(() => {});
await downloadQueueRepository.delete({ game: { id: updatedGame!.id } });
await downloadQueueRepository.insert({ game: { id: updatedGame!.id } });