mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-02-12 19:22:28 +00:00
lint
This commit is contained in:
parent
93ef0c256e
commit
bd184fceda
2 changed files with 2 additions and 9 deletions
|
@ -4,7 +4,6 @@ import { DownloadManager } from "@main/services";
|
||||||
import { dataSource } from "@main/data-source";
|
import { dataSource } from "@main/data-source";
|
||||||
import { Game } from "@main/entity";
|
import { Game } from "@main/entity";
|
||||||
|
|
||||||
|
|
||||||
const pauseGameSeed = async (
|
const pauseGameSeed = async (
|
||||||
_event: Electron.IpcMainInvokeEvent,
|
_event: Electron.IpcMainInvokeEvent,
|
||||||
gameId: number
|
gameId: number
|
||||||
|
@ -12,10 +11,7 @@ const pauseGameSeed = async (
|
||||||
await dataSource.transaction(async (transactionalEntityManager) => {
|
await dataSource.transaction(async (transactionalEntityManager) => {
|
||||||
await transactionalEntityManager
|
await transactionalEntityManager
|
||||||
.getRepository(Game)
|
.getRepository(Game)
|
||||||
.update(
|
.update({ id: gameId }, { status: "complete", shouldSeed: false });
|
||||||
{ id: gameId },
|
|
||||||
{ status: "complete", shouldSeed: false }
|
|
||||||
);
|
|
||||||
});
|
});
|
||||||
|
|
||||||
await DownloadManager.cancelDownload(gameId);
|
await DownloadManager.cancelDownload(gameId);
|
||||||
|
|
|
@ -23,10 +23,7 @@ const resumeGameSeed = async (
|
||||||
await dataSource.transaction(async (transactionalEntityManager) => {
|
await dataSource.transaction(async (transactionalEntityManager) => {
|
||||||
await transactionalEntityManager
|
await transactionalEntityManager
|
||||||
.getRepository(Game)
|
.getRepository(Game)
|
||||||
.update(
|
.update({ id: gameId }, { status: "seeding", shouldSeed: true });
|
||||||
{ id: gameId },
|
|
||||||
{ status: "seeding", shouldSeed: true }
|
|
||||||
);
|
|
||||||
});
|
});
|
||||||
|
|
||||||
await DownloadManager.startDownload(game);
|
await DownloadManager.startDownload(game);
|
||||||
|
|
Loading…
Reference in a new issue