From e4b76717bebb952299f3e7472b61803abe85ee02 Mon Sep 17 00:00:00 2001 From: LouisLam Date: Wed, 1 Sep 2021 15:02:04 +0800 Subject: [PATCH] revert back to node-sqlite3 --- server/database.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/server/database.js b/server/database.js index 98b7062a..c0a53a9b 100644 --- a/server/database.js +++ b/server/database.js @@ -121,11 +121,8 @@ class Database { return statement !== ""; }) - // Use better-sqlite3 to run, prevent "This statement does not return data. Use run() instead" - const db = await this.getBetterSQLite3Database(); - for (let statement of statements) { - db.prepare(statement).run(); + await R.exec(statement); } }