feat: adding generic http downloads

This commit is contained in:
Chubby Granny Chaser
2024-07-09 19:24:02 +01:00
parent 6fce60f9f7
commit 6c6fff71fe
12 changed files with 294 additions and 41 deletions

View File

@@ -44,6 +44,8 @@ const startGameDownload = async (
);
if (game) {
console.log("game", game);
await gameRepository.update(
{
id: game.id,
@@ -95,6 +97,8 @@ const startGameDownload = async (
},
});
console.log(updatedGame);
createGame(updatedGame!);
await downloadQueueRepository.delete({ game: { id: updatedGame!.id } });