Permalink
Browse files

Logssssss

  • Loading branch information...
1 parent b46b955 commit 4aab819f269ea0d888741b83e0685ea5154b4f61 @brianloveswords brianloveswords committed Nov 11, 2012
Showing with 2 additions and 1 deletion.
  1. +1 −0 models/badge.js
  2. +1 −1 routes/badge.js
View
@@ -339,6 +339,7 @@ Badge.prototype.claimCodeIsClaimed = function claimCodeIsClaimed(code) {
Badge.prototype.redeemClaimCode = function redeemClaimCode(code, email) {
const claim = this.getClaimCode(code);
+ console.dir(claim);
if (!claim)
return null;
if (claim.claimedBy && claim.claimedBy !== email)
View
@@ -152,7 +152,7 @@ exports.awardToUser = function awardToUser(req, res, next) {
var email = (form.email || '').trim();
var code = (form.code || '').trim();
var badge = req.badge;
- // var couldClaim = badge.redeemClaimCode(code, email);
+ var couldClaim = badge.redeemClaimCode(code, email);
// if (!couldClaim)
// return res.send({ status: 'already-claimed' })
badge.awardOrFind(email, function (err, instance) {

0 comments on commit 4aab819

Please sign in to comment.