mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-28 19:41:33 +02:00
Also add the final email to the array of emails on the account
This commit is contained in:
@@ -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?
|
||||
|
||||
Reference in New Issue
Block a user