diff --git a/controllers/program.js b/controllers/program.js index 9debcda..5505bd0 100644 --- a/controllers/program.js +++ b/controllers/program.js @@ -283,7 +283,7 @@ module.exports = function (app) { applications.findOrCreate({ badgeId: badge.id, - LearnerId: 1 // req.session.user.id + LearnerId: req.session.user.id }) .complete(function(err, application) { if (err || !application)