diff --git a/ProjectSourceCode/src/index.js b/ProjectSourceCode/src/index.js index 1990fc2..cd9e612 100644 --- a/ProjectSourceCode/src/index.js +++ b/ProjectSourceCode/src/index.js @@ -173,7 +173,7 @@ app.post('/register', async (req, res) => { await db.none('INSERT INTO users (username, password) VALUES ($1, $2)', [req.body.username, hash]); // Redirect user to the login page after successful registration - res.redirect('/login'); + res.redirect('/home'); } catch (error) { // If an error occurs during registration, respond with status 500 and an error message res.status(500).json({ status: 'error', message: 'An error occurred during registration' }); diff --git a/ProjectSourceCode/src/resources/js/navigation-bar/scoreboard-header/current-match-routes.js b/ProjectSourceCode/src/resources/js/navigation-bar/scoreboard-header/current-match-routes.js index 2b28a4a..2355511 100644 --- a/ProjectSourceCode/src/resources/js/navigation-bar/scoreboard-header/current-match-routes.js +++ b/ProjectSourceCode/src/resources/js/navigation-bar/scoreboard-header/current-match-routes.js @@ -7,7 +7,7 @@ const fetchMatchesData = async (req, res, next) => { const today = moment().format('YYYY-MM-DD'); // Get today's date in YYYY-MM-DD format // Subtract one day to get yesterday's date - const yesterdayUnformatted = moment().subtract(3, 'days'); + const yesterdayUnformatted = moment().subtract(8, 'days'); // Format yesterday's date as YYYY-MM-DD const yesterday = yesterdayUnformatted.format('YYYY-MM-DD');