Merge branch 'main' into feat/get-image-assets-from-api

This commit is contained in:
Zamitto
2025-05-09 08:49:37 -03:00
3 changed files with 6 additions and 7 deletions

View File

@@ -5,7 +5,7 @@ import { gamesSublevel, levelKeys } from "@main/level";
export const createGame = async (game: Game) => {
return HydraApi.post(`/profile/games`, {
objectId: game.objectId,
playTimeInMilliseconds: Math.trunc(game.playTimeInMilliseconds),
playTimeInMilliseconds: Math.trunc(game.playTimeInMilliseconds ?? 0),
shop: game.shop,
lastTimePlayed: game.lastTimePlayed,
}).then((response) => {