feat: Add job to remove stale contact inboxes (#8096)
This commit is contained in:
11
app/jobs/internal/remove_stale_contact_inboxes_job.rb
Normal file
11
app/jobs/internal/remove_stale_contact_inboxes_job.rb
Normal file
@@ -0,0 +1,11 @@
|
||||
# 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
|
||||
Reference in New Issue
Block a user