remove useless sql.serialize call
This commit is contained in:
parent
96acf3614b
commit
66da5f6497
@ -91,9 +91,7 @@ class Database {
|
|||||||
|
|
||||||
insertPing (ip, timestamp, playerCount) {
|
insertPing (ip, timestamp, playerCount) {
|
||||||
const statement = this._sql.prepare('INSERT INTO pings (timestamp, ip, playerCount) VALUES (?, ?, ?)')
|
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()
|
statement.finalize()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user