fire and forget changeEmail in setDefaultEmailAddress

prevents blocking/erroring the change email workflow
This commit is contained in:
Henry Oswald 2018-08-31 11:16:28 +01:00
parent 038b18a209
commit bab334aa44

View file

@ -112,7 +112,8 @@ module.exports = UserUpdater =
else if res.n == 0 # TODO: Check n or nMatched?
return callback(new Error('Default email does not belong to user'))
else
NewsletterManager.changeEmail oldEmail, email, callback
callback()
NewsletterManager.changeEmail oldEmail, email, ->