mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-31 14:51:02 +00:00
feat: structure profile content and update response
This commit is contained in:
@@ -3,7 +3,7 @@ import { userProfileSchema } from "../helpers/validators";
|
||||
import { logger } from "@main/services";
|
||||
import { HydraApi } from "@main/services/hydra-api";
|
||||
import { steamGamesWorker } from "@main/workers";
|
||||
import { LibraryGame, SteamGame, UserProfile } from "@types";
|
||||
import { UserProfile } from "@types";
|
||||
|
||||
const getUserProfile = async (
|
||||
_event: Electron.IpcMainInvokeEvent,
|
||||
@@ -32,7 +32,7 @@ const getUserProfile = async (
|
||||
})
|
||||
);
|
||||
|
||||
return { ...profile, game: libraryGames, recentGames };
|
||||
return { ...profile, libraryGames, recentGames };
|
||||
} catch (err) {
|
||||
logger.error(`getUserProfile: ${username}`, err);
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user