diff --git a/routes/manage.js b/routes/manage.js index b04cf75..227c27d 100644 --- a/routes/manage.js +++ b/routes/manage.js @@ -68,7 +68,7 @@ router.post('/game', userLoggedIn, function(req, res, next) { else if(id) games.edit(id, divisionID, seasonID, date, team1ID, team2ID, team1Score, team2Score) .then(res.redirect('/manage')); else games.add(divisionID, seasonID, date, team1ID, team2ID, team1Score, team2Score, userID) - .then(res.redirect("/manage")); + .then(res.redirect("/")); }); });