From edfd42a6232676053b0e5808e2b3591208d8c6dc Mon Sep 17 00:00:00 2001 From: sudoer777 <78781902+sudoer777@users.noreply.github.com> Date: Sun, 21 Nov 2021 17:08:16 -0700 Subject: [PATCH] Fix bug in "retrieveBySport" function in teams.js --- database/scores/teams.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) => {