mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-02-13 03:32:13 +00:00
user parameters on raw query
This commit is contained in:
parent
2db32f270c
commit
d6ea0d817e
1 changed files with 2 additions and 1 deletions
|
@ -41,7 +41,8 @@ export class AlterLastTimePlayedToDatime1716776027208
|
|||
for (const game of result) {
|
||||
if (!game.lastTimePlayed) continue;
|
||||
await queryRunner.query(
|
||||
`UPDATE game set lastTimePlayed = '${game.lastTimePlayed.toUTCString()}' WHERE id = ${game.id};`
|
||||
`UPDATE game set lastTimePlayed = ? WHERE id = ${game.id};`,
|
||||
[game.lastTimePlayed.toUTCString()]
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue