Fix bug in "retrieveBySport" function in teams.js

main
sudoer777 2021-11-21 17:08:16 -07:00
parent e1acf1951c
commit edfd42a623
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ async function retrieveBySport(sportID) {
FROM scores.teams FROM scores.teams
WHERE sport_id = $1 WHERE sport_id = $1
ORDER BY team_name;`; ORDER BY team_name;`;
const table = await database.executeQuery(query); const table = await database.executeQuery(query, [sportID]);
const teamsList = []; const teamsList = [];
table.forEach((row) => { table.forEach((row) => {