Fix bug in teams.js
This commit is contained in:
		
							parent
							
								
									8cd291ef2a
								
							
						
					
					
						commit
						fc60e5186a
					
				
					 1 changed files with 1 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -55,8 +55,7 @@ async function getFromID(id) {
 | 
			
		|||
    const query = `SELECT team_name
 | 
			
		||||
            FROM scores.teams
 | 
			
		||||
            WHERE team_id = $1;`;
 | 
			
		||||
    const name = await database.executeQuery(query, [teamID])[0][0];
 | 
			
		||||
 | 
			
		||||
    const name = (await database.executeQuery(query, [id]))[0][0];
 | 
			
		||||
    return new Team(id, name);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Reference in a new issue