commit
This commit is contained in:
parent
cbe05f3937
commit
1d4417af9b
5 changed files with 5 additions and 5 deletions
|
@ -22,7 +22,7 @@ router.post('/', async (req, res) => {
|
|||
return res.status(400).send({error: "invalid token"});
|
||||
}
|
||||
|
||||
const connection = getConnection();
|
||||
const connection = await getConnection();
|
||||
const games = await getGames();
|
||||
connection.end();
|
||||
res.status(200).send(games);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue