remove useless sql.serialize call

This commit is contained in:
Nick Krecklow 2020-05-08 03:41:19 -05:00
parent 96acf3614b
commit 66da5f6497
No known key found for this signature in database
GPG Key ID: 5F149FDE156FFA94

@ -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()
}
}