fix postgres issue

This commit is contained in:
Simon Tokumine 2011-06-13 13:07:55 +01:00
parent 423e156552
commit 5c68302b55

View File

@ -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){