Created
July 13, 2016 19:02
-
-
Save spion/5382c37bdaf772cc6a6f23d0833e07a8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function getData() { | |
var respondent = Respondent.findById(respondentId) | |
var box = respondent.then(r => Box.findById(r.box_id)) | |
var user = box.then(box => User.findById(box.owned_by)) | |
return Promise.props({user, box, respondent}) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment