mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-07-13 17:52:22 +00:00
parent
0fa7277cf0
commit
e21230f8c2
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 cb();
|
||||
if (!user) return;
|
||||
var self = this;
|
||||
self.shortName = self.shortName || self.name;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue