diff --git a/lib/database.js b/lib/database.js index bbfc336..60f795a 100644 --- a/lib/database.js +++ b/lib/database.js @@ -91,9 +91,7 @@ class Database { insertPing (ip, timestamp, playerCount) { const statement = this._sql.prepare('INSERT INTO pings (timestamp, ip, playerCount) VALUES (?, ?, ?)') - this._sql.serialize(() => { - statement.run(timestamp, ip, playerCount) - }) + statement.run(timestamp, ip, playerCount) statement.finalize() } }