diff --git a/src/main/events/torrenting/pause-game-seed.ts b/src/main/events/torrenting/pause-game-seed.ts index 8fe69bc5..3b38c626 100644 --- a/src/main/events/torrenting/pause-game-seed.ts +++ b/src/main/events/torrenting/pause-game-seed.ts @@ -4,7 +4,6 @@ import { DownloadManager } from "@main/services"; import { dataSource } from "@main/data-source"; import { Game } from "@main/entity"; - const pauseGameSeed = async ( _event: Electron.IpcMainInvokeEvent, gameId: number @@ -12,10 +11,7 @@ const pauseGameSeed = async ( await dataSource.transaction(async (transactionalEntityManager) => { await transactionalEntityManager .getRepository(Game) - .update( - { id: gameId }, - { status: "complete", shouldSeed: false } - ); + .update({ id: gameId }, { status: "complete", shouldSeed: false }); }); await DownloadManager.cancelDownload(gameId); diff --git a/src/main/events/torrenting/resume-game-seed.ts b/src/main/events/torrenting/resume-game-seed.ts index f5d177c2..93308f94 100644 --- a/src/main/events/torrenting/resume-game-seed.ts +++ b/src/main/events/torrenting/resume-game-seed.ts @@ -23,10 +23,7 @@ const resumeGameSeed = async ( await dataSource.transaction(async (transactionalEntityManager) => { await transactionalEntityManager .getRepository(Game) - .update( - { id: gameId }, - { status: "seeding", shouldSeed: true } - ); + .update({ id: gameId }, { status: "seeding", shouldSeed: true }); }); await DownloadManager.startDownload(game);