From 8eeca1291a0262850318da6037dbcd7677c8f806 Mon Sep 17 00:00:00 2001 From: Berkeley Martinez Date: Sat, 1 Jul 2017 13:06:49 -0700 Subject: [PATCH] fix(server.challenges): Add missing returns getChallengeById (#15573) --- server/boot/challenge.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/boot/challenge.js b/server/boot/challenge.js index 380a6c9b03..e586e7500a 100644 --- a/server/boot/challenge.js +++ b/server/boot/challenge.js @@ -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); }