Set redirect to root when game is added
parent
e6c4d2347f
commit
24a93104e4
|
@ -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("/"));
|
||||
});
|
||||
});
|
||||
|
||||
|
|
Reference in New Issue