handle expire time as int

This commit is contained in:
Linus Jansson 2021-10-03 20:54:13 +01:00
parent 5d2965ffc5
commit 189c351038

View File

@ -7,9 +7,10 @@ const {Pool} = require('pg');
// A postgres document store
var PostgresDocumentStore = function (options) {
this.expireJS = options.expire;
this.expireJS = parseInt(options.expire);
const connectionString = process.env.DATABASE_URL || options.connectionUrl;
console.log(connectionString)
this.pool = new Pool({connectionString});
};