diff --git a/database/scores/teams.js b/database/scores/teams.js index 1bad3fa..89f2c4c 100644 --- a/database/scores/teams.js +++ b/database/scores/teams.js @@ -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) => {