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});