This commit is contained in:
Hachi-R 2024-11-08 21:30:51 -03:00
parent b32952f076
commit 94b65c0357
2 changed files with 4 additions and 6 deletions

View file

@ -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);

View file

@ -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!);