mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
lint
This commit is contained in:
parent
b32952f076
commit
94b65c0357
2 changed files with 4 additions and 6 deletions
|
@ -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);
|
||||
|
|
|
@ -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!);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue