2024-03-05 17:07:13 +01:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module Maintenance
|
|
|
|
class DestroyIncompleteBulkMessagesTask < MaintenanceTasks::Task
|
|
|
|
def collection
|
2024-03-13 15:12:52 +01:00
|
|
|
BulkMessage.where(procedure: nil).where.missing(:groupe_instructeurs)
|
2024-03-05 17:07:13 +01:00
|
|
|
end
|
|
|
|
|
|
|
|
def process(element)
|
|
|
|
element.destroy
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|