Fix bug in teams.js
parent
8cd291ef2a
commit
fc60e5186a
|
@ -55,8 +55,7 @@ async function getFromID(id) {
|
|||
const query = `SELECT team_name
|
||||
FROM scores.teams
|
||||
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);
|
||||
}
|
||||
|
||||
|
|
Reference in New Issue