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