Chatwoot/app/jobs/account/conversations_resolution_scheduler_job.rb

10 lines
267 B
Ruby
Raw Normal View History

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