From 49cef6f5332c9767b40c4ded87446c602b3795ca Mon Sep 17 00:00:00 2001 From: Lukian Date: Mon, 16 Sep 2024 18:02:18 +0200 Subject: [PATCH] commit --- api/v1/auth/login.js | 1 - api/v1/games/getall.js | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) 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); });