Fix cb
This commit is contained in:
parent
098c24e48a
commit
6d2c095976
|
@ -473,7 +473,9 @@ module.exports = class User {
|
||||||
return this.removeProperty(name, next);
|
return this.removeProperty(name, next);
|
||||||
},
|
},
|
||||||
err => {
|
err => {
|
||||||
return cb(err);
|
if(cb) {
|
||||||
|
return cb(err);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue