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;
}
const updateGameData = async (
params: UpdateGameDataParams
): Promise<Game> => {
const updateGameData = async (params: UpdateGameDataParams): Promise<Game> => {
const {
gameKey,
existingGame,

View File

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