summaryrefslogtreecommitdiff
path: root/connect-better-sqlite3.js
diff options
context:
space:
mode:
Diffstat (limited to 'connect-better-sqlite3.js')
-rw-r--r--connect-better-sqlite3.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/connect-better-sqlite3.js b/connect-better-sqlite3.js
index 4731897..173b75d 100644
--- a/connect-better-sqlite3.js
+++ b/connect-better-sqlite3.js
@@ -9,6 +9,8 @@
* MIT Licensed
*/
+"use strict";
+
module.exports = function (session) {
const SQLite = require('better-sqlite3');
@@ -23,7 +25,7 @@ module.exports = function (session) {
let table = options.table || 'sessions';
let db_path = options.db || table;
- if (db_path != ':memory:')
+ if (db_path !== ':memory:')
db_path = (options.dir || '.') + '/' + db_path;
let db = new SQLite(db_path, options.mode);