Set redirect to root when game is added

main
sudoer777 2021-11-26 13:19:20 -07:00
parent e6c4d2347f
commit 24a93104e4
1 changed files with 1 additions and 1 deletions

View File

@ -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("/"));
});
});