Fixing not saved mail error
This commit is contained in:
parent
b65c93acfc
commit
ed46cf4963
@ -135,6 +135,8 @@ const Register = Stacker(verify({
|
|||||||
primary: true
|
primary: true
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Mail.save(ml);
|
||||||
|
|
||||||
user.mails.push(ml._id);
|
user.mails.push(ml._id);
|
||||||
await User.save(user)
|
await User.save(user)
|
||||||
res.json({ success: true });
|
res.json({ success: true });
|
||||||
|
Loading…
Reference in New Issue
Block a user