mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-23 10:51:02 +00:00
feat: use convertSteamGameToCatalogueEntry
This commit is contained in:
@@ -4,6 +4,7 @@ import { logger } from "@main/services";
|
||||
import { HydraApi } from "@main/services/hydra-api";
|
||||
import { steamGamesWorker } from "@main/workers";
|
||||
import { UserProfile } from "@types";
|
||||
import { convertSteamGameToCatalogueEntry } from "../helpers/search-games";
|
||||
|
||||
const getUserProfile = async (
|
||||
_event: Electron.IpcMainInvokeEvent,
|
||||
@@ -19,7 +20,7 @@ const getUserProfile = async (
|
||||
name: "getById",
|
||||
});
|
||||
|
||||
return { ...game, title: steamGame.name, objectId: game.objectId };
|
||||
return convertSteamGameToCatalogueEntry(steamGame);
|
||||
})
|
||||
);
|
||||
|
||||
@@ -28,7 +29,7 @@ const getUserProfile = async (
|
||||
const steamGame = await steamGamesWorker.run(Number(game.objectId), {
|
||||
name: "getById",
|
||||
});
|
||||
return { ...game, title: steamGame.name, objectID: game.objectId };
|
||||
return convertSteamGameToCatalogueEntry(steamGame);
|
||||
})
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user