diff --git a/server.js b/server.js index c643966..9512e67 100644 --- a/server.js +++ b/server.js @@ -68,13 +68,11 @@ app.get('/', function (req, res) { database.each("SELECT * FROM players", function(err, row) { console.log('Received a player row! Weheeeee!'); - console.log(row.name); var nextElement = players.length; players[nextElement] = row.name; + console.log(players); }); - console.log(players); - res.render('index', { title: 'My Game',