challenge prize: various fixes. Woo, challenge prizes work now!

@sabrecat @lemoness @wc8 (still some bugs & cleanup, but it's mostly there)
This commit is contained in:
Tyler Renelle
2013-10-31 14:06:18 -07:00
parent 693061c77b
commit d5e78266e5
4 changed files with 6 additions and 5 deletions
+1 -1
View File
@@ -275,7 +275,7 @@ api.selectWinner = function(req, res) {
function(saved, num, cb) {
closeChal(req.params.cid, {broken: 'CHALLENGE_CLOSED', winner: saved.profile.name}, cb);
}
], function(){
], function(err){
if (err) return res.json(500, {err: err});
res.send(200);
})