app/jobs/decidim/admin/newsletter_job.rb in decidim-admin-0.12.2 vs app/jobs/decidim/admin/newsletter_job.rb in decidim-admin-0.13.0.pre1
- old
+ new
@@ -26,11 +26,11 @@
end
private
def recipients
- @recipients ||= User.where(newsletter_notifications: true, organization: @newsletter.organization)
- .where.not(email: nil, confirmed_at: nil)
+ @recipients ||= User.where(organization: @newsletter.organization)
+ .where.not(newsletter_notifications_at: nil, email: nil, confirmed_at: nil)
.not_deleted
end
end
end
end