mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +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) {
|
for (const game of result) {
|
||||||
if (!game.lastTimePlayed) continue;
|
if (!game.lastTimePlayed) continue;
|
||||||
await queryRunner.query(
|
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…
Add table
Add a link
Reference in a new issue