diff --git a/lib/document_stores/postgres.js b/lib/document_stores/postgres.js index 9aaa520..682ee1e 100644 --- a/lib/document_stores/postgres.js +++ b/lib/document_stores/postgres.js @@ -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}); };