Class: Decidim::DeleteInactiveParticipantsJob
- Inherits:
-
ApplicationJob
- Object
- ActiveJob::Base
- ApplicationJob
- Decidim::DeleteInactiveParticipantsJob
- Defined in:
- decidim-core/app/jobs/decidim/delete_inactive_participants_job.rb
Overview
A job to delete inactive participants and notify them
Instance Method Summary collapse
Instance Method Details
#perform(organization) ⇒ Object
8 9 10 11 12 13 |
# File 'decidim-core/app/jobs/decidim/delete_inactive_participants_job.rb', line 8 def perform(organization) clear_notifications_for_active_users(organization) send_first_warning_notifications(organization.users.first_warning_inactive_users) send_last_warning_notifications(organization.users.last_warning_inactive_users) remove_inactive_users(organization.users.removable_users) end |