Fix bug where genders by sport do not report correctly
parent
2ecb26ca3c
commit
4f3581b1e5
|
@ -15,8 +15,8 @@ const FEMALE = new Gender("female");
|
|||
|
||||
|
||||
async function retrieveBySport(sportID) {
|
||||
const query = `SELECT gender
|
||||
from scores.divisions
|
||||
const query = `SELECT DISTINCT(gender)
|
||||
FROM scores.divisions
|
||||
WHERE sport_id = $1;`;
|
||||
const table = await database.executeQuery(query, [sportID]);
|
||||
|
||||
|
|
Reference in New Issue