Merge branch 'rc/v2.0' of github.com:hydralauncher/hydra into feature/auth-window

This commit is contained in:
Chubby Granny Chaser 2024-06-20 21:33:33 +01:00
commit 633bb7820b
No known key found for this signature in database

View file

@ -3,11 +3,11 @@ import { HydraApi } from "../hydra-api";
export const updateGamePlaytime = async (
game: Game,
delta: number,
deltaInMillis: number,
lastTimePlayed: Date
) => {
return HydraApi.put(`/games/${game.remoteId}`, {
playTimeDeltaInSeconds: Math.trunc(delta),
playTimeDeltaInSeconds: Math.trunc(deltaInMillis / 1000),
lastTimePlayed,
});
};