title: Promise { <pending> } - Trying to await for .map
body: <p>I am using <code>.map</code> to map out a new object and to add the old price to the map. </p>
  
  <p>I am using Async/Await with my datamaps, here is what my code looks like:</p>
  
  <pre><code>let datasets = await changes.map(async (data) =&gt; {
    let products = {};
    let last = await models.prices.findOne({
      where: {
          productId: data.productId,
          sourceId: data.sourceId
      },
      order: [['createdAt', 'DESC']],
      limit: 1,
      offset: 1
    });
  
    products.name   = data.product.name;
    products.price  = data.price;
    products.sku    = data.product.sku;
    products.source = data.source.name;
    products.link   = data.link;
    products.diff   = last.price;
  
  
    return products;
  });
  </code></pre>
  
  <p><code>changes</code> are all of the prices changes found in the last 24 hours.</p>
  
  <p><code>last</code> contains the previous time a price change was found of the particular product.</p>
  
  <p>The <code>return products</code> isn't waiting, so I get a spam of <code>Promise { &lt;pending&gt; }</code> messages. If I use a <code>console.log(last)</code> it's working inside, but I cannot figure out the correct way to slow down the return. </p>
  
  <p><code>products.diff = last.price</code> is the one piece that needs to fill for this to be valid. Any ideas?</p>