From 66da5f6497fa1801ebde269999e72f4dc631e5ca Mon Sep 17 00:00:00 2001 From: Nick Krecklow Date: Fri, 8 May 2020 03:41:19 -0500 Subject: [PATCH] remove useless sql.serialize call --- lib/database.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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() } }