mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-03-13 22:49:51 -04:00
MailChimp tweak.
This commit is contained in:
parent
0a34bfc7a8
commit
72360be965
1 changed files with 1 additions and 0 deletions
|
@ -45,6 +45,7 @@ UserSchema.statics.updateMailChimp = (doc, callback) ->
|
|||
params.email = if existingProps then {leid:existingProps.leid} else {email:doc.get('email')}
|
||||
params.merge_vars = { groupings: [ {id: MAILCHIMP_GROUP_ID, groups: newGroups} ] }
|
||||
params.update_existing = true
|
||||
params.double_optin = false
|
||||
|
||||
onSuccess = (data) ->
|
||||
doc.set('mailChimp', data)
|
||||
|
|
Loading…
Reference in a new issue