From 4b759a22394fa5d042528b4e08303640bacc8c99 Mon Sep 17 00:00:00 2001 From: myk bilokonsky Date: Mon, 10 Apr 2017 00:26:41 +0200 Subject: added config --- index.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'index.js') diff --git a/index.js b/index.js index 2701a24..9d46a85 100644 --- a/index.js +++ b/index.js @@ -22,8 +22,6 @@ var config = { }; // instantiate a new client -// the client will read connection information from -// the same environment variables used by postgres cli tools var client = new pg.Client(config); function cycle() { @@ -37,7 +35,7 @@ function cycle() { return console.error('error running query', err); } - res.rows.forEach(function(row) { + result.rows.forEach(function(row) { console.dir(row); }); -- cgit