Skip to content

Instantly share code, notes, and snippets.

@doug-martin
Created June 18, 2012 16:07
Show Gist options
  • Save doug-martin/2949138 to your computer and use it in GitHub Desktop.
Save doug-martin/2949138 to your computer and use it in GitHub Desktop.
var when = comb.when,
wrap = comb.wrap,
User = models.User,
Chores = models.Chores;
when(
wrap(User.find, User)({}),
wrap(Chore.find, Chore)({})
).then(function(res){
res.render('index', {
title:'Chore App',
users:res[0],
chores:res[1]
});
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment