Skip to content
This repository was archived by the owner on May 14, 2020. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/yesmail2/subscriber.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down