Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions store/sqlstore/cc_queue_store.go
Original file line number Diff line number Diff line change
Expand Up @@ -583,13 +583,13 @@ with queues as (
select distinct
q.id queue_id,
array_agg(distinct a.id) filter (
where status = 'online'
where a.status = 'online'
and (a.status_id is null or sp.is_system is true or spp.skill_id is not null)
) agent_on_ids,
array_agg(distinct a.id) filter ( where status = 'offline' ) agent_off_ids,
array_agg(distinct a.id) filter ( where status in ('pause', 'break_out') ) agent_p_ids,
array_agg(distinct a.id) filter ( where a.status = 'offline' ) agent_off_ids,
array_agg(distinct a.id) filter ( where a.status in ('pause', 'break_out') ) agent_p_ids,
array_agg(distinct a.id) filter (
where status = 'online'
where a.status = 'online'
and (a.status_id is null or sp.is_system is true or spp.skill_id is not null)
and ac.state = 'waiting'
) free,
Expand Down