commit
This commit is contained in:
parent
1d4417af9b
commit
49cef6f533
2 changed files with 1 additions and 2 deletions
|
@ -10,7 +10,6 @@ router.post('/', async (req, res) => {
|
||||||
const {username, password} = req.body;
|
const {username, password} = req.body;
|
||||||
|
|
||||||
const connection = await getConnection();
|
const connection = await getConnection();
|
||||||
|
|
||||||
const user = await getUser(connection, username);
|
const user = await getUser(connection, username);
|
||||||
|
|
||||||
if (!user[0]) {
|
if (!user[0]) {
|
||||||
|
|
|
@ -23,7 +23,7 @@ router.post('/', async (req, res) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
const connection = await getConnection();
|
const connection = await getConnection();
|
||||||
const games = await getGames();
|
const games = await getGames(connection);
|
||||||
connection.end();
|
connection.end();
|
||||||
res.status(200).send(games);
|
res.status(200).send(games);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue