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

Commit

Permalink
Fix org/program relationship
Browse files Browse the repository at this point in the history
  • Loading branch information
brianloveswords committed May 24, 2013
1 parent a7415bb commit 98eca67
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion routes/badge.js
Expand Up @@ -335,7 +335,6 @@ exports.findAll = function findAll(req, res, next) {
.map(util.prop('program'));
const populateIssuers = util.method('populate', 'issuer');
async.map(programs, populateIssuers, function (err) {
console.dir(badges);
if (err) return next(err);
return next();
});
Expand Down
1 change: 1 addition & 0 deletions routes/issuer.js
Expand Up @@ -106,6 +106,7 @@ exports.newProgram = function newProgram(req, res, next) {
const issuer = req.issuer;
new Program({
name: form.name,
issuer: issuer.id,
description: form.description,
startDate: form.startDate,
endDate: form.endDate,
Expand Down

0 comments on commit 98eca67

Please sign in to comment.