From 3c02f1b6ea8e7b2a87482f60ff82cea44ede40f4 Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Mon, 2 Jul 2012 23:10:44 +0200 Subject: o Fixing bug. --- .gitignore | 1 + routes/index.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 3c3629e..93f1361 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ node_modules +npm-debug.log diff --git a/routes/index.js b/routes/index.js index ec57575..82dd1ca 100644 --- a/routes/index.js +++ b/routes/index.js @@ -97,7 +97,7 @@ exports.departments = function(req, res) { else { var c = {collection: { href: res.urlgenerator.departments(), - items: mapDepartments(res, departments.rows) + items: mapDepartments(res, rs2.rows) }}; res.contentType('application/vnd.collection+json'); res.send(JSON.stringify(collection_json.fromObject(c)), 200); -- cgit v1.2.3