add safety guard to serializers & fix importing uncorrect serializer
This commit is contained in:
parent
26602dcd20
commit
c1fc3b9f6e
3 changed files with 5 additions and 1 deletions
|
|
@ -56,6 +56,8 @@ export default (
|
|||
_user = deepcopy(user);
|
||||
}
|
||||
|
||||
if (!_user) return reject('invalid user arg.');
|
||||
|
||||
// Me
|
||||
const meId: mongo.ObjectID = me
|
||||
? mongo.ObjectID.prototype.isPrototypeOf(me)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue