fix: async error function had too many arguments

This commit is contained in:
Moyasee
2025-09-30 02:18:22 +03:00
parent 655de1361b
commit e5646240ab
2 changed files with 11 additions and 13 deletions

View File

@@ -44,9 +44,7 @@ interface UpdateGameDataParams {
customOriginalHeroPath?: string | null; customOriginalHeroPath?: string | null;
} }
const updateGameData = async ( const updateGameData = async (params: UpdateGameDataParams): Promise<Game> => {
params: UpdateGameDataParams
): Promise<Game> => {
const { const {
gameKey, gameKey,
existingGame, existingGame,

View File

@@ -164,16 +164,16 @@ contextBridge.exposeInMainWorld("electron", {
originalHeroPath?: string; originalHeroPath?: string;
}) => ipcRenderer.invoke("updateCustomGame", params), }) => ipcRenderer.invoke("updateCustomGame", params),
updateGameCustomAssets: (params: { updateGameCustomAssets: (params: {
shop: GameShop; shop: GameShop;
objectId: string; objectId: string;
title: string; title: string;
customIconUrl?: string | null; customIconUrl?: string | null;
customLogoImageUrl?: string | null; customLogoImageUrl?: string | null;
customHeroImageUrl?: string | null; customHeroImageUrl?: string | null;
customOriginalIconPath?: string | null; customOriginalIconPath?: string | null;
customOriginalLogoPath?: string | null; customOriginalLogoPath?: string | null;
customOriginalHeroPath?: string | null; customOriginalHeroPath?: string | null;
}) => ipcRenderer.invoke("updateGameCustomAssets", params), }) => ipcRenderer.invoke("updateGameCustomAssets", params),
createGameShortcut: ( createGameShortcut: (
shop: GameShop, shop: GameShop,
objectId: string, objectId: string,