Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Logssssss

  • Loading branch information...
commit 4aab819f269ea0d888741b83e0685ea5154b4f61 1 parent b46b955
@brianloveswords brianloveswords authored
Showing with 2 additions and 1 deletion.
  1. +1 −0  models/badge.js
  2. +1 −1  routes/badge.js
View
1  models/badge.js
@@ -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
2  routes/badge.js
@@ -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) {
Please sign in to comment.
Something went wrong with that request. Please try again.