mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
11 lines
333 B
TypeScript
11 lines
333 B
TypeScript
import { registerEvent } from "../register-event";
|
|
import { gameRepository } from "../../repository";
|
|
|
|
const removeGameFromLibrary = async (
|
|
_event: Electron.IpcMainInvokeEvent,
|
|
gameId: number
|
|
) => {
|
|
gameRepository.update({ id: gameId }, { isDeleted: true });
|
|
};
|
|
|
|
registerEvent("removeGameFromLibrary", removeGameFromLibrary);
|