mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
call changeEmail before the callback in setDefaultEmailAddress
This commit is contained in:
parent
bab334aa44
commit
245ad2a2a8
1 changed files with 1 additions and 1 deletions
|
@ -112,8 +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
|
||||
callback()
|
||||
NewsletterManager.changeEmail oldEmail, email, ->
|
||||
callback()
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue