Skip to content

Instantly share code, notes, and snippets.

@aviflombaum
Created October 31, 2017 02:57
Show Gist options
  • Save aviflombaum/ceea926f85050e63650213ce437b683f to your computer and use it in GitHub Desktop.
Save aviflombaum/ceea926f85050e63650213ce437b683f to your computer and use it in GitHub Desktop.
IceBreakersController.Show = async function(req, res, next){
IceBreaker.findBySecret(req.query.secret).then(function(icebreaker){
// this sucks
icebreaker.responses().then(function(icebreakerResponses){
console.log(icebreakerResponses)
console.log(icebreaker)
res.render("icebreakers/show", {icebreaker: icebreaker, icebreakerResponses: icebreakerResponses})
});
})
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment