diff --git a/api/v1/auth/login.js b/api/v1/auth/login.js index 78bf402..eeb4589 100644 --- a/api/v1/auth/login.js +++ b/api/v1/auth/login.js @@ -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]) { diff --git a/api/v1/games/getall.js b/api/v1/games/getall.js index b032c16..54ee894 100644 --- a/api/v1/games/getall.js +++ b/api/v1/games/getall.js @@ -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); });