diff options
-rw-r--r-- | index.js | 4 |
1 files changed, 1 insertions, 3 deletions
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); }); |