Permalink
Browse files

Fixed get getFullUser of user serivice

  • Loading branch information...
1 parent 2b1161c commit 0d2d3adc2eb6785b25d7fa3b663787479c3d29bb @toantran committed Mar 16, 2012
Showing with 15 additions and 15 deletions.
  1. +2 −2 coffee/services/user.coffee
  2. +13 −13 services/user.js
@@ -766,8 +766,8 @@ exports.getFullUser = (userid, callback = ->) ->
else
cb null, null
.then ( err, challenges, cb = ->) =>
- @team.challenges = challenges
- @user.challenges = challenges
+ @team?.challenges = challenges
+ @user?.challenges = challenges
allmatches = @team?.matches
# Load pending matches
matches = (match for match in allmatches when match?.status is 'pending') if allmatches?
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

0 comments on commit 0d2d3ad

Please sign in to comment.