mirror of
https://github.com/overleaf/overleaf.git
synced 2025-04-10 22:07:19 +00:00
fire off register to newsletter on user registration as it can be slow
This commit is contained in:
parent
c33956c0af
commit
8638b531a5
1 changed files with 3 additions and 1 deletions
|
@ -53,7 +53,9 @@ module.exports =
|
|||
async.series [
|
||||
(cb)-> User.update {_id: user._id}, {"$set":{holdingAccount:false}}, cb
|
||||
(cb)-> AuthenticationManager.setUserPassword user._id, userDetails.password, cb
|
||||
(cb)-> NewsLetterManager.subscribe user, cb
|
||||
(cb)->
|
||||
NewsLetterManager.subscribe user, ->
|
||||
cb() #this can be slow, just fire it off
|
||||
(cb)->
|
||||
emailOpts =
|
||||
first_name:user.first_name
|
||||
|
|
Loading…
Add table
Reference in a new issue