diff --git a/src/main/events/torrenting/pause-game-seed.ts b/src/main/events/torrenting/pause-game-seed.ts index 3b00ddd5..d9a2a61a 100644 --- a/src/main/events/torrenting/pause-game-seed.ts +++ b/src/main/events/torrenting/pause-game-seed.ts @@ -9,10 +9,9 @@ const pauseGameSeed = async ( gameId: number ) => { await dataSource.transaction(async (transactionalEntityManager) => { - await transactionalEntityManager - .getRepository(Game) - .update({ id: gameId }, { status: "complete", shouldSeed: false }); + .getRepository(Game) + .update({ id: gameId }, { status: "complete", shouldSeed: false }); }); await DownloadManager.pauseSeeding(gameId); diff --git a/src/main/events/torrenting/resume-game-seed.ts b/src/main/events/torrenting/resume-game-seed.ts index 133b26a0..6e74679d 100644 --- a/src/main/events/torrenting/resume-game-seed.ts +++ b/src/main/events/torrenting/resume-game-seed.ts @@ -19,10 +19,9 @@ const resumeGameSeed = async ( if (!game) return; await dataSource.transaction(async (transactionalEntityManager) => { - await transactionalEntityManager - .getRepository(Game) - .update({ id: gameId }, { status: "seeding", shouldSeed: true }); + .getRepository(Game) + .update({ id: gameId }, { status: "seeding", shouldSeed: true }); }); await DownloadManager.resumeSeeding(gameId, game.uri!, game.downloadPath!);