feat: adding remove function to filter tags

This commit is contained in:
Chubby Granny Chaser
2024-12-23 18:57:41 +00:00
parent 4476b1b216
commit b5a9beb481
18 changed files with 560 additions and 385 deletions

View File

@@ -2,16 +2,15 @@ import type { CatalogueSearchPayload } from "@types";
import { registerEvent } from "../register-event";
import { HydraApi } from "@main/services";
const PAGE_SIZE = 12;
const searchGames = async (
_event: Electron.IpcMainInvokeEvent,
payload: CatalogueSearchPayload,
page: number
take: number,
skip: number
) => {
return HydraApi.post(
"/catalogue/search",
{ ...payload, take: page * PAGE_SIZE, skip: (page - 1) * PAGE_SIZE },
{ ...payload, take, skip },
{ needsAuth: false }
);
};