From 3dcc43578b99dbafac35dece9d774ff2af39e8d0 Mon Sep 17 00:00:00 2001 From: Linus J <30862662+linus-jansson@users.noreply.github.com> Date: Mon, 14 Feb 2022 20:48:23 +0100 Subject: [PATCH] Parse the expiration time as an INT (#392) * handle expire time as int * Removed logging * Update lib/document_stores/postgres.js --- lib/document_stores/postgres.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/document_stores/postgres.js b/lib/document_stores/postgres.js index 9aaa520..f723dbb 100644 --- a/lib/document_stores/postgres.js +++ b/lib/document_stores/postgres.js @@ -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});