mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
This commit is contained in:
parent
b60d9aa4db
commit
6b6b472315
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…
Add table
Reference in a new issue