mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-07-18 20:04:38 +00:00
small fix
This commit is contained in:
parent
efbf151c11
commit
f3401e72c2
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue