Permalink
Browse files

Fix mass awarder.

  • Loading branch information...
brianloveswords committed Feb 6, 2012
1 parent 64cb025 commit 9f49ac0f0aadcf4afc88f646fc6db8795afd4c99
Showing with 2 additions and 4 deletions.
  1. +1 −3 bin/migrator.js
  2. +1 −1 controllers/demo.js
View
@@ -47,6 +47,4 @@ setTimeout(function () {
});
})
})
-}, 2000);
-
-
+}, 2000);
View
@@ -36,7 +36,7 @@ exports.award = function(req, res) {
exports.massAward = function (req, res) {
if (!req.user) return res.send('nope');
var demoBadgeDir = path.join(process.cwd(), 'static', '_demo')
- , email = req.user.data.email;
+ , email = req.user.get('email');
fs.readdirSync(demoBadgeDir)
.map(function (f) {

0 comments on commit 9f49ac0

Please sign in to comment.