feat: returning with edit profile modal

This commit is contained in:
Chubby Granny Chaser 2024-09-13 00:03:58 +01:00
commit 2304e19558
No known key found for this signature in database
78 changed files with 1810 additions and 906 deletions

View file

@ -3,6 +3,15 @@ import { HydraApi } from "../hydra-api";
import { gameRepository } from "@main/repository";
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);
});
HydraApi.post(`/profile/games`, {
objectId: game.objectID,
playTimeInMilliseconds: Math.trunc(game.playTimeInMilliseconds),