title: Promise pending on async function
body: <p>I'm trying to get data from an API request but I don't know why await does not wait to get data to return value. Anyone can help me?</p>
  <pre class="lang-js prettyprint-override"><code>async function getChampionMasteryData(championId, summonerName) {  
      try {
          var summonerId = process.env.SUMMONER_ID;
          
          let championMasteryData = await axios(`https://euw1.api.riotgames.com/lol/champion-mastery/v4/champion-masteries/by-summoner/${summonerId}/by-champion/${championId}?api_key=${process.env.API_KEY}`, {responseType: 'json'});
  
          return championMasteryData.data;
      } catch (e) {
          console.log(e);
      }
  }
  </code></pre>
  <p>Output:</p>
  <pre class="lang-js prettyprint-override"><code>Promise { &lt;pending&gt; }
  </code></pre>