aboutsummaryrefslogtreecommitdiff
path: root/routes
diff options
context:
space:
mode:
Diffstat (limited to 'routes')
-rw-r--r--routes/index.js2
1 files changed, 1 insertions, 1 deletions
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);