mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
feat: profile redesign
This commit is contained in:
parent
8f0003298f
commit
d9a7672113
24 changed files with 268 additions and 97 deletions
|
@ -1,15 +1,14 @@
|
|||
import { Game } from "@main/entity";
|
||||
import { HydraApi } from "../hydra-api";
|
||||
import { gameRepository } from "@main/repository";
|
||||
import { logger } from "../logger";
|
||||
|
||||
export const createGame = async (game: Game) => {
|
||||
console.log({ objectId: game.objectID, shop: game.shop });
|
||||
|
||||
HydraApi.post("/games/download", {
|
||||
objectId: game.objectID,
|
||||
shop: game.shop,
|
||||
}).catch((err) => {
|
||||
console.log(err);
|
||||
logger.error("Failed to create game download", err);
|
||||
});
|
||||
|
||||
HydraApi.post(`/profile/games`, {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue