Skip to content
This repository has been archived by the owner on Jan 14, 2020. It is now read-only.

Commit

Permalink
Show programs on badge edit screen.
Browse files Browse the repository at this point in the history
  • Loading branch information
brianloveswords committed Jun 5, 2013
1 parent 7ef55c2 commit b5db099
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion routes/issuer.js
Expand Up @@ -9,7 +9,8 @@ const method = util.method;
const prop = util.prop;

exports.findAll = function findAll(req, res, next) {
Issuer.find({}, {name: 1})
Issuer.find({}, {name: 1, programs: 1})
.populate('programs')
.exec(function (err, issuers) {
if (err) return next(err);
req.issuers = issuers;
Expand Down

0 comments on commit b5db099

Please sign in to comment.