chatwoot-develop/app/jobs/internal/remove_stale_contact_inboxes_job.rb

12 lines
281 B
Ruby
Executable File

# housekeeping
# remove contact inboxes that does not have any conversations
# and are older than 3 months
class Internal::RemoveStaleContactInboxesJob < ApplicationJob
queue_as :scheduled_jobs
def perform
Internal::RemoveStaleContactInboxesService.new.perform
end
end