mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-27 17:45:40 -05:00
Disabling an error that occurs on the dev server with the partial db.
This commit is contained in:
parent
f519df6189
commit
5fc7caec64
1 changed files with 1 additions and 1 deletions
|
@ -130,7 +130,7 @@ UserSchema.statics.incrementStat = (id, statName, done, inc=1) ->
|
|||
@findById id, (err, user) ->
|
||||
log.error err if err?
|
||||
err = new Error "Could't find user with id '#{id}'" unless user or err
|
||||
return done err if err?
|
||||
return done() if err?
|
||||
user.incrementStat statName, done, inc=1
|
||||
|
||||
UserSchema.methods.incrementStat = (statName, done, inc=1) ->
|
||||
|
|
Loading…
Reference in a new issue