Fix bug in teams.js

main
sudoer777 2021-11-21 21:42:03 -07:00
parent 8cd291ef2a
commit fc60e5186a
1 changed files with 1 additions and 2 deletions

View File

@ -55,8 +55,7 @@ async function getFromID(id) {
const query = `SELECT team_name const query = `SELECT team_name
FROM scores.teams FROM scores.teams
WHERE team_id = $1;`; WHERE team_id = $1;`;
const name = await database.executeQuery(query, [teamID])[0][0]; const name = (await database.executeQuery(query, [id]))[0][0];
return new Team(id, name); return new Team(id, name);
} }