mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-11 13:56:16 +00:00
14 lines
391 B
TypeScript
14 lines
391 B
TypeScript
import { registerEvent } from "../register-event";
|
|
import { HydraApi } from "@main/services";
|
|
import type { GameShop } from "@types";
|
|
|
|
const deleteReview = async (
|
|
_event: Electron.IpcMainInvokeEvent,
|
|
shop: GameShop,
|
|
objectId: string,
|
|
reviewId: string
|
|
) => {
|
|
return HydraApi.delete(`/games/${shop}/${objectId}/reviews/${reviewId}`);
|
|
};
|
|
|
|
registerEvent("deleteReview", deleteReview); |