Fix bug in "retrieveBySport" function in teams.js
parent
e1acf1951c
commit
edfd42a623
|
@ -42,7 +42,7 @@ async function retrieveBySport(sportID) {
|
|||
FROM scores.teams
|
||||
WHERE sport_id = $1
|
||||
ORDER BY team_name;`;
|
||||
const table = await database.executeQuery(query);
|
||||
const table = await database.executeQuery(query, [sportID]);
|
||||
|
||||
const teamsList = [];
|
||||
table.forEach((row) => {
|
||||
|
|
Reference in New Issue