Chore: Improve conversation auto resolution (#3405)

Fixes: #1583
This commit is contained in:
Shivam Chahar
2021-11-27 09:26:18 +05:30
committed by GitHub
parent 89f9f39e6e
commit a4ee8ee239
11 changed files with 75 additions and 85 deletions

View File

@@ -0,0 +1,9 @@
class Account::ConversationsResolutionSchedulerJob < ApplicationJob
queue_as :scheduled_jobs
def perform
Account.where.not(auto_resolve_duration: nil).all.each do |account|
Conversations::ResolutionJob.perform_later(account: account)
end
end
end