Fixing not saved mail error

This commit is contained in:
Fabian Stamm 2018-11-06 21:28:59 +01:00
parent b65c93acfc
commit ed46cf4963

View File

@ -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 });