This commit is contained in:
Lukian LEIZOUR 2024-06-06 13:29:50 +02:00
parent 1f1a6a6784
commit dc429fe9ea

View file

@ -14,7 +14,7 @@ const con = mysql.createConnection({
function getGames() {
return new Promise((resolve, reject) => {
con.query(
`SELECT title, subtitle, type, players, duration, ages FROM games`,
`SELECT id, title, subtitle, type, players, duration, ages FROM games`,
(error, result) => {
if (error) {
reject(new Error(error));