mirror of
https://github.com/overleaf/overleaf.git
synced 2025-01-23 17:22:03 +00:00
fire and forget changeEmail in setDefaultEmailAddress
prevents blocking/erroring the change email workflow
This commit is contained in:
parent
038b18a209
commit
bab334aa44
1 changed files with 2 additions and 1 deletions
|
@ -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, ->
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue