diff options
Diffstat (limited to 'routes')
-rw-r--r-- | routes/index.js | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/routes/index.js b/routes/index.js index 5676d27..9c2a157 100644 --- a/routes/index.js +++ b/routes/index.js @@ -20,7 +20,6 @@ exports.departments = function(req, res){ departments.push(row); }). on('end', function() { - client.end(); res.render('departments', { title: 'Departments', departments: departments @@ -42,7 +41,6 @@ exports.department = function(req, res){ employees.push(row); }). on('end', function() { - client.end(); if(req.accepts('application/vnd.collection+json')) { var object = collection_json.fromObject({}); res.contentType('application/vnd.collection+json'); @@ -67,7 +65,6 @@ exports.employee = function(req, res){ employee = row; }). on('end', function() { - client.end(); if(req.accepts('application/vnd.collection+json')) { var items = [ mapRow(employee) ]; var object = collection_json.fromObject({collection: {items: items}}); |