Skip to content

Commit

Permalink
Getting so close
Browse files Browse the repository at this point in the history
  • Loading branch information
Angela Evans committed Sep 24, 2015
1 parent c553afe commit 5e5e27d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ app.post('/store', function(req, res){
client.query('INSERT INTO caught_users(id, email, password) values($1, $2, $3)', [0, email, password], function(err, result) {
done();
if (err)
{ console.error(err); res.render('pages/oops'); }
{ console.error(err); /*res.render('pages/oops');*/ }
else
{ console.log("should render here?"); res.redirect('pages/oops'); }
{ console.log("should render here?"); /*res.redirect('pages/oops');*/ }
});
});
});
Expand Down

0 comments on commit 5e5e27d

Please sign in to comment.