mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Also add the final email to the array of emails on the account
This commit is contained in:
parent
efb6018246
commit
5e17dfd1cb
1 changed files with 5 additions and 0 deletions
|
@ -35,6 +35,11 @@ module.exports = AccountMergeEmailController =
|
|||
'$set': {
|
||||
'overleaf.id': v1_id,
|
||||
email: final_email
|
||||
},
|
||||
'$push': {
|
||||
emails: {
|
||||
email: final_email, createdAt: new Date()
|
||||
}
|
||||
}
|
||||
}, (err) ->
|
||||
return next(err) if err?
|
||||
|
|
Loading…
Reference in a new issue