mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-02-15 04:32:13 +00:00
Merge branch 'rc/v2.0' of github.com:hydralauncher/hydra into feature/auth-window
This commit is contained in:
commit
633bb7820b
1 changed files with 2 additions and 2 deletions
|
@ -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,
|
||||
});
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue