Untested hotfix to prevent MySQL connection loss

We were being disconnected due to inactivity. This should be handled properly
This commit is contained in:
2022-04-25 22:20:57 +02:00
committed by GitHub
parent f2ca4b5ac3
commit b19c29b068

View File

@@ -54,3 +54,6 @@ app.post('/scores', (req, res) => {
app.listen(3030, () => {
console.log('Server listening on port 3030!');
});
setInterval(function () {
connection.query('SELECT 1');
}, 5000);