From 189c351038b21a0be46c251a9a67f5c7acb0499d Mon Sep 17 00:00:00 2001 From: Linus Jansson Date: Sun, 3 Oct 2021 20:54:13 +0100 Subject: [PATCH] handle expire time as int --- lib/document_stores/postgres.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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}); };