mirror of
https://github.com/seejohnrun/haste-server
synced 2025-08-22 04:03:10 -07:00
Update lib/document_stores/postgres.js
Co-authored-by: Denis Berezin <deniskaber@mail.ru>
This commit is contained in:
parent
b1572c93a1
commit
7e617f9241
1 changed files with 1 additions and 1 deletions
|
@ -7,7 +7,7 @@ const {Pool} = require('pg');
|
|||
|
||||
// A postgres document store
|
||||
var PostgresDocumentStore = function (options) {
|
||||
this.expireJS = parseInt(options.expire);
|
||||
this.expireJS = parseInt(options.expire, 10);
|
||||
|
||||
const connectionString = process.env.DATABASE_URL || options.connectionUrl;
|
||||
this.pool = new Pool({connectionString});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue