From e0850e8a224bbc7fd09d183c756a6017c54d7aa7 Mon Sep 17 00:00:00 2001 From: Fernando Soria Date: Tue, 5 May 2015 19:22:31 +0000 Subject: [PATCH] Parameter name change for update_subscribers method --- lib/yesmail2/subscriber.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/yesmail2/subscriber.rb b/lib/yesmail2/subscriber.rb index db349bd..0a30327 100644 --- a/lib/yesmail2/subscriber.rb +++ b/lib/yesmail2/subscriber.rb @@ -155,12 +155,12 @@ def self.subscribers_search(search, params = {}) # the users already exists and has been marked as unsubscribed, should # this attempt to resubscribe them still work? def self.update_subscribers(subscribers, divisions, subscriptions = [], - existing_subscribers = 'update', resubscribe = false) + import_type = 'update', resubscribe = false) divisions = [divisions] if divisions.is_a?(String) data = { - :existingSubscribers => existing_subscribers, + :importType => import_type, :resubscribe => resubscribe, :memberOf => divisions, :subscribers => subscribers