Created
October 31, 2017 02:57
-
-
Save aviflombaum/ceea926f85050e63650213ce437b683f 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
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