fix postgres issue
This commit is contained in:
parent
423e156552
commit
5c68302b55
@ -45,7 +45,7 @@ app.get('/v1/', function(req, res){
|
|||||||
},
|
},
|
||||||
function packageResults(err, result){
|
function packageResults(err, result){
|
||||||
if (err) throw err;
|
if (err) throw err;
|
||||||
pg.end();
|
//pg.end(); TODO: Fix this - we should use a proper pool?
|
||||||
res.send(result.rows);
|
res.send(result.rows);
|
||||||
},
|
},
|
||||||
function exceptionHandle(err, result){
|
function exceptionHandle(err, result){
|
||||||
|
Loading…
Reference in New Issue
Block a user