mirror of
https://github.com/seejohnrun/haste-server
synced 2025-08-24 15:05:29 -07:00
handle expire time as int
This commit is contained in:
parent
5d2965ffc5
commit
189c351038
1 changed files with 2 additions and 1 deletions
|
@ -7,9 +7,10 @@ const {Pool} = require('pg');
|
||||||
|
|
||||||
// A postgres document store
|
// A postgres document store
|
||||||
var PostgresDocumentStore = function (options) {
|
var PostgresDocumentStore = function (options) {
|
||||||
this.expireJS = options.expire;
|
this.expireJS = parseInt(options.expire);
|
||||||
|
|
||||||
const connectionString = process.env.DATABASE_URL || options.connectionUrl;
|
const connectionString = process.env.DATABASE_URL || options.connectionUrl;
|
||||||
|
console.log(connectionString)
|
||||||
this.pool = new Pool({connectionString});
|
this.pool = new Pool({connectionString});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue