diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2012-07-02 23:10:44 +0200 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2012-07-02 23:10:44 +0200 |
commit | 3c02f1b6ea8e7b2a87482f60ff82cea44ede40f4 (patch) | |
tree | 9d385a869a11cd8c258f6a91087dea9cb8e5febc | |
parent | 350b7ac055ed6374bde8bf49278c085f583c5781 (diff) | |
download | example-collection-json-db-3c02f1b6ea8e7b2a87482f60ff82cea44ede40f4.tar.gz example-collection-json-db-3c02f1b6ea8e7b2a87482f60ff82cea44ede40f4.tar.bz2 example-collection-json-db-3c02f1b6ea8e7b2a87482f60ff82cea44ede40f4.tar.xz example-collection-json-db-3c02f1b6ea8e7b2a87482f60ff82cea44ede40f4.zip |
o Fixing bug.
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | routes/index.js | 2 |
2 files changed, 2 insertions, 1 deletions
@@ -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); |