// Wrong away const poolCountResponse = await api.get('http://localhost:3333/pools/count') const guessCountResponse = await api.get('http://localhost:3333/guesses/count') // Correct way const [poolCountResponse, guessCountResponse] = await Promise.all([ api.get('http://localhost:3333/pools/count'), api.get('http://localhost:3333/guesses/count') ])