Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function doYoba(callback) {
- Flowy.chain(function(){
- _db.getProfile(sessionId, this.slot());
- })
- .then(function(err, user){
- if (!user) {
- callback(null);
- }
- Flowy.chain(function(){
- _db.getGalleries(this.slot());
- _db.getProfile(this.slot());
- })
- .then(function(err, gallery, profile){
- var viewModel = {
- profile: profile,
- gallery: gallery
- };
- callback(viewModel)
- });
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment