Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
  • Loading branch information
mevdschee committed Jan 17, 2017
1 parent a893d7a commit 7546216
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ var pool = mysql.createPool({

// ensure request has database connection

var withConnection = function (handler) {
var withDb = function (handler) {
return function (req, resp) {
pool.getConnection(function (err, connection) {
if (err) {
Expand Down Expand Up @@ -46,7 +46,7 @@ var withBody = function (handler) {

// main web handler

var server = http.createServer(withConnection(withBody(function (req, resp) {
var server = http.createServer(withDb(withBody(function (req, resp) {

// get the HTTP method, path and body of the request
var method = req.method;
Expand Down

0 comments on commit 7546216

Please sign in to comment.