Unverified Commit 3dcc4357 authored by Linus J's avatar Linus J Committed by GitHub
Browse files

Parse the expiration time as an INT (#392)

* handle expire time as int

* Removed logging

* Update lib/document_stores/postgres.js
parent 1ea6b6e9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -7,7 +7,7 @@ const {Pool} = require('pg');

// A postgres document store
var PostgresDocumentStore = function (options) {
  this.expireJS = options.expire;
  this.expireJS = parseInt(options.expire, 10);

  const connectionString = process.env.DATABASE_URL || options.connectionUrl;
  this.pool = new Pool({connectionString});