Split baseUrl and topic
This commit is contained in:
		
							parent
							
								
									4a5f34801a
								
							
						
					
					
						commit
						83bb9951b0
					
				
					 3 changed files with 36 additions and 22 deletions
				
			
		| 
						 | 
				
			
			@ -127,7 +127,7 @@ class Api {
 | 
			
		|||
        if (response.status !== 200) {
 | 
			
		||||
            throw new Error(`Unexpected server response ${response.status}`);
 | 
			
		||||
        }
 | 
			
		||||
        const stats = response.json();
 | 
			
		||||
        const stats = await response.json();
 | 
			
		||||
        console.log(`[Api] Stats`, stats);
 | 
			
		||||
        return stats;
 | 
			
		||||
    }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue