app/commands/decidim/conferences/admin/update_conference.rb in decidim-conferences-0.15.2 vs app/commands/decidim/conferences/admin/update_conference.rb in decidim-conferences-0.16.0
- old
+ new
@@ -92,11 +92,11 @@
def send_notification_registrations_enabled
Decidim::EventsManager.publish(
event: "decidim.events.conferences.registrations_enabled",
event_class: Decidim::Conferences::ConferenceRegistrationsEnabledEvent,
resource: @conference,
- recipient_ids: @conference.followers.pluck(:id)
+ followers: @conference.followers
)
end
def should_notify_followers_registrations_enabled?
@conference.previous_changes["registrations_enabled"].present? && @conference.registrations_enabled?
@@ -105,10 +105,10 @@
def send_notification_update_conference
Decidim::EventsManager.publish(
event: "decidim.events.conferences.conference_updated",
event_class: Decidim::Conferences::UpdateConferenceEvent,
resource: @conference,
- recipient_ids: @conference.followers.pluck(:id)
+ followers: @conference.followers
)
end
def should_notify_followers_update_conference?
important_attributes.any? { |attr| @conference.previous_changes[attr].present? }