Add some documentation to the Mailchimp code

This commit is contained in:
Eric Schultz 2019-08-07 13:15:47 -05:00
parent e85873c0b2
commit 55b4ed0ff2

View file

@ -167,6 +167,8 @@ module Mailchimp
end
# @param [EmailList] email_list
# Notably, if a supporter unsubscribed on Mailchimp, this will not
# resubscribe them. This is the correct behavior.
def self.hard_sync_list(email_list)
ops = generate_batch_ops_for_hard_sync(email_list)
perform_batch_operations(email_list.nonprofit.id, ops)