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:
@@ -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);
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user