fix(server.challenges): Add missing returns getChallengeById (#15573)
This commit is contained in:
committed by
mrugesh mohapatra
parent
4ee279b173
commit
8eeca1291a
@ -446,9 +446,9 @@ module.exports = function(app) {
|
||||
req.flash('info', {
|
||||
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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user