title: Having nested promises and returning them in route won't update the route model and the template using that model
body: <p>in my route model i need to send two requests (previous and latest) and on the response i grab their ids to send two other requests(baslineCpature and currentcapture). when i got the responses of both requests, i need to send two other requests(fiberHealthData, wavelengthsPerSectionData). ember model should return  (baslineCpature,currentcapture, fiberHealthData, wavelengthsPerSectionData ).
  one issue i have here is that i want to update my template as soon as i get response for baslineCpature and currentcapture.</p>
  
  <p>Here is my code. I appreciate if someone can tell me what i am doing wrong.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>model: function (params,transition) {
  
    var promiseA=null;
    var promiseB=null;
    var promiseA1=null;
    var promiseB1=null;
  
    promiseA1 = Ember.RSVP.hash({
      latest:this.store.findAll('latest'),
      previous: this.store.findAll('previous'),
    });
  
    promiseA= promiseA1.then((promiseAResolved) =&gt; {
      return Ember.RSVP.hash({
        baselineCapture:self.store.find('capture', promiseAResolved.previous.get('firstObject.id')),
        currentCapture: self.store.find('capture', promiseAResolved.latest.get('firstObject.id')),
      });
    });
  
    promiseB= promiseA.then((promiseAResolved) =&gt; {
      baselineId =  promiseAResolved.baselineCapture.id;
      currentId =  promiseAResolved.currentCapture.id;
  
      return Ember.RSVP.hash({
        fiberHealthData:self.store.findAll('fiber-health',{ adapterOptions: {current: currentId, baseline: baselineId}}),
        wavelengthsPerSectionData:self.store.findAll('wavelengths-per-section',{ adapterOptions: {current: currentId, baseline: baselineId}} )
      });
    });
  
  //this should be retun of my model
    return Ember.RSVP.hash({
      baselineCapture:promiseA.baselineCapture,
      currentCapture:promiseA.currentCapture,
       fiberHealthData:promiseB.fiberHealthData,
      wavelengthsPerSectionData:promiseB.wavelengthsPerSectionData,
    });
  }</code></pre>
  </div>
  </div>
  </p>