handle expire time as int
This commit is contained in:
parent
5d2965ffc5
commit
189c351038
|
@ -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});
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user