mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-09 23:24:07 -08:00
revert back to node-sqlite3
This commit is contained in:
parent
bc70ecfba7
commit
e4b76717be
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue