mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-03-13 22:49:51 -04:00
MailChimp webhook fix.
This commit is contained in:
parent
3122dd9594
commit
eafa82357c
1 changed files with 3 additions and 5 deletions
|
@ -55,11 +55,9 @@ handleProfileUpdate = (user, post) ->
|
|||
lname = post.data.merges.LNAME
|
||||
user.set('lastName', lname) if lname
|
||||
|
||||
mailChimpInfo = user.get 'mailChimp'
|
||||
mailChimpInfo.email = post.data.email
|
||||
mailChimpInfo.euid = post.data.id
|
||||
user.set 'mailChimp', mailChimpInfo
|
||||
|
||||
user.set 'mailChimp.email', post.data.email
|
||||
user.set 'mailChimp.euid', post.data.id
|
||||
|
||||
badLog("Updating user object to: #{JSON.stringify(user.toObject(), null, '\t')}")
|
||||
|
||||
handleUnsubscribe = (user) ->
|
||||
|
|
Loading…
Reference in a new issue