title: returned results from promise.all() does not capture scoped variable
body: <p>I am having issue with capturing each id from queryArray and storing it with the return promise results. </p>
  
  <pre><code>getSavedQueries: function(req, res) {
      SPromise.then(function(client) {
        const SavedQuery = client.Reports;
        var queryArray = req.query.queryArray; // ['123', '234', '456']
        var payloadObj = {};
        var actions = lo.map(queryArray, function(id) {
          var queryID = Number(id);
          *payloadObj['ID'] = queryID;* &lt;--- not sure where to put this
          return SavedQuery.findOne(queryID).then(function(result){
            payloadObj['query'] = result;
            return payloadObj
          });
        });
        return Promise.all(actions);
      }).then(function(result){
        return res.json(result)
      });
    }
  </code></pre>
  
  <p>my res.json(result) returns with the last item on the array for all three objects: </p>
  
  <pre><code>[ {ID: 456, query: ...}, 
    {ID: 456, query: ...}, 
    {ID: 456, query: ...}]
  </code></pre>
  
  <p>Instead of :     </p>
  
  <pre><code>  [ {ID: 123, query: ...}, 
      {ID: 234, query: ...}, 
      {ID: 456, query: ...}]
  </code></pre>