fix(server.challenges): Add missing returns getChallengeById (#15573)

This commit is contained in:
Berkeley Martinez
2017-07-01 13:06:49 -07:00
committed by mrugesh mohapatra
parent 4ee279b173
commit 8eeca1291a

View File

@ -446,9 +446,9 @@ module.exports = function(app) {
req.flash('info', { req.flash('info', {
msg: `We coudn't find a challenge with the id ${challengeId}` msg: `We coudn't find a challenge with the id ${challengeId}`
}); });
res.redirect('/map'); return res.redirect('/map');
} }
res.redirect('/challenges/' + dashedName); return res.redirect('/challenges/' + dashedName);
}) })
.subscribe(() => {}, next); .subscribe(() => {}, next);
} }