add missing await

This commit is contained in:
Fabian Stamm 2018-11-06 21:42:56 +01:00
parent aa381965b7
commit b6f5a38f10

View File

@ -135,7 +135,7 @@ const Register = Stacker(verify({
primary: true
})
Mail.save(ml);
await Mail.save(ml);
user.mails.push(ml._id);
await User.save(user)