From 5fc7caec6487cdacde0294d68e2af6966f54f28c Mon Sep 17 00:00:00 2001 From: Scott Erickson Date: Wed, 3 Sep 2014 17:26:43 -0700 Subject: [PATCH] Disabling an error that occurs on the dev server with the partial db. --- server/users/User.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/users/User.coffee b/server/users/User.coffee index a0e7fe18a..db1e76143 100644 --- a/server/users/User.coffee +++ b/server/users/User.coffee @@ -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) ->