small fix

This commit is contained in:
Tyler Renelle 2014-09-26 11:24:29 -06:00
parent efbf151c11
commit f3401e72c2

View file

@ -69,7 +69,7 @@ ChallengeSchema.methods.isOutdated = function(newData) {
* @return nothing, user is modified directly. REMEMBER to save the user!
*/
ChallengeSchema.methods.syncToUser = function(user, cb) {
if (!user) return;
if (!user) return cb();
var self = this;
self.shortName = self.shortName || self.name;