commit
This commit is contained in:
parent
1f1a6a6784
commit
dc429fe9ea
1 changed files with 1 additions and 1 deletions
|
@ -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));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue