fix: unattended count mismatch in report and list (#7263)
This commit is contained in:
@@ -69,6 +69,7 @@ class Conversation < ApplicationRecord
|
||||
scope :unassigned, -> { where(assignee_id: nil) }
|
||||
scope :assigned, -> { where.not(assignee_id: nil) }
|
||||
scope :assigned_to, ->(agent) { where(assignee_id: agent.id) }
|
||||
scope :unattended, -> { where(first_reply_created_at: nil) }
|
||||
scope :resolvable, lambda { |auto_resolve_duration|
|
||||
return none if auto_resolve_duration.to_i.zero?
|
||||
|
||||
|
||||
Reference in New Issue
Block a user