Skip to content

Commit

Permalink
sqlite: Avoid buggy sqlite3.cached.Database()
Browse files Browse the repository at this point in the history
The `sqlite3.cached.Database()` function returns a Database object
that cannot be safely closed. See:
TryGhost/node-sqlite3#1407
  • Loading branch information
rhansen committed Dec 7, 2020
1 parent 005a7a0 commit cdf6d52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion databases/sqlite_db.js
Expand Up @@ -59,7 +59,7 @@ exports.database.prototype.init = function(callback)
async.waterfall([
function(callback)
{
_this.db = new sqlite3.cached.Database(_this.settings.filename, callback);
_this.db = new sqlite3.Database(_this.settings.filename, callback);
},
function(callback)
{
Expand Down

0 comments on commit cdf6d52

Please sign in to comment.