This commit is contained in:
Lukian 2024-09-16 18:02:18 +02:00
parent 1d4417af9b
commit 49cef6f533
2 changed files with 1 additions and 2 deletions

View file

@ -10,7 +10,6 @@ router.post('/', async (req, res) => {
const {username, password} = req.body;
const connection = await getConnection();
const user = await getUser(connection, username);
if (!user[0]) {

View file

@ -23,7 +23,7 @@ router.post('/', async (req, res) => {
}
const connection = await getConnection();
const games = await getGames();
const games = await getGames(connection);
connection.end();
res.status(200).send(games);
});