feat: initial profile refactor

This commit is contained in:
Chubby Granny Chaser 2024-09-12 00:53:16 +01:00
parent 6273ca1376
commit ada7b452a0
No known key found for this signature in database
48 changed files with 10733 additions and 922 deletions

View file

@ -1,7 +1,7 @@
import { gameRepository } from "@main/repository";
import { HydraApi } from "../hydra-api";
import { steamGamesWorker } from "@main/workers";
import { getSteamAppAsset } from "@main/helpers";
import { steamUrlBuilder } from "@shared";
export const mergeWithRemoteGames = async () => {
return HydraApi.get("/profile/games")
@ -44,7 +44,7 @@ export const mergeWithRemoteGames = async () => {
if (steamGame) {
const iconUrl = steamGame?.clientIcon
? getSteamAppAsset("icon", game.objectId, steamGame.clientIcon)
? steamUrlBuilder.icon(game.objectId, steamGame.clientIcon)
: null;
gameRepository.insert({