Disabling an error that occurs on the dev server with the partial db.

This commit is contained in:
Scott Erickson 2014-09-03 17:26:43 -07:00
parent f519df6189
commit 5fc7caec64

View file

@ -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) ->