mirror of
https://github.com/seejohnrun/haste-server.git
synced 2025-12-12 23:15:55 +00:00
Parse the expiration time as an INT (#392)
* handle expire time as int * Removed logging * Update lib/document_stores/postgres.js
This commit is contained in:
@@ -7,7 +7,7 @@ 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, 10);
|
||||||
|
|
||||||
const connectionString = process.env.DATABASE_URL || options.connectionUrl;
|
const connectionString = process.env.DATABASE_URL || options.connectionUrl;
|
||||||
this.pool = new Pool({connectionString});
|
this.pool = new Pool({connectionString});
|
||||||
|
|||||||
Reference in New Issue
Block a user