summary refs log tree commit diff
diff options
context:
space:
mode:
authormyk bilokonsky <mbilokonsky@gmail.com>2017-04-10 00:26:41 +0200
committermyk bilokonsky <mbilokonsky@gmail.com>2017-04-10 00:26:41 +0200
commit4b759a22394fa5d042528b4e08303640bacc8c99 (patch)
tree28bb57c82a0dc91e9916b23b59daaceb749f1af2
parent695658a7c603bf854162cf1db31e2d5f8d19c270 (diff)
added config
-rw-r--r--index.js4
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);
       });