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