summaryrefslogtreecommitdiff
path: root/connect-better-sqlite3.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2021-07-05 13:49:28 +0200
committerTor Andersson <tor@ccxvii.net>2021-07-05 13:49:39 +0200
commit03593b69f1f23cec95833df767fcc4ae6390cb14 (patch)
tree8e846baab414e655f990a7f8db3ee2aae5bdcaab /connect-better-sqlite3.js
parenta9689a97b41a18625a9d506ffab601057e4f34d5 (diff)
downloadserver-03593b69f1f23cec95833df767fcc4ae6390cb14.tar.gz
Eqeqeq server code.
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);