Fix bug in "retrieveBySport" function in teams.js
parent
e1acf1951c
commit
edfd42a623
|
@ -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) => {
|
||||||
|
|
Reference in New Issue