mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-02-03 08:43:48 +03:00
feat: change column type to datetime
This commit is contained in:
parent
016f47d17f
commit
f252abc7a7
@ -59,7 +59,7 @@ export class Game {
|
|||||||
@Column("int", { default: 0 })
|
@Column("int", { default: 0 })
|
||||||
bytesDownloaded: number;
|
bytesDownloaded: number;
|
||||||
|
|
||||||
@Column("text", { nullable: true })
|
@Column("datetime", { nullable: true })
|
||||||
lastTimePlayed: Date | null;
|
lastTimePlayed: Date | null;
|
||||||
|
|
||||||
@Column("float", { default: 0 })
|
@Column("float", { default: 0 })
|
||||||
|
@ -56,10 +56,7 @@ export const startProcessWatcher = async () => {
|
|||||||
|
|
||||||
await gameRepository.update(game.id, {
|
await gameRepository.update(game.id, {
|
||||||
playTimeInMilliseconds: game.playTimeInMilliseconds + delta,
|
playTimeInMilliseconds: game.playTimeInMilliseconds + delta,
|
||||||
});
|
lastTimePlayed: new Date(),
|
||||||
|
|
||||||
gameRepository.update(game.id, {
|
|
||||||
lastTimePlayed: new Date().toUTCString(),
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user