Skip to content

Commit

Permalink
WTEL-3907
Browse files Browse the repository at this point in the history
  • Loading branch information
navrotskyj committed Oct 9, 2023
1 parent 73991c6 commit b0e6ab0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions store/sqlstore/agent_store.go
Original file line number Diff line number Diff line change
Expand Up @@ -200,8 +200,8 @@ FROM call_center.cc_agent a_1
WHERE (q_1.team_id IS NULL OR a_1.team_id = q_1.team_id)
and q_1.enabled
and x.xxx && array [a_1.id]
and coalesce((q_1.payload->'min_online_agents')::int, 0) > 0
and array_length(x.xxx, 1) <= (q_1.payload->'min_online_agents')::int
and GREATEST(coalesce((q_1.payload->'min_online_agents')::int, 0), 0) > 0
and array_length(x.xxx, 1) <= GREATEST((q_1.payload->'min_online_agents')::int, 0)
and a_1.id = :AgentId::int
and a_1.domain_id = :DomainId::int8)`, map[string]interface{}{
"AgentId": agentId,
Expand Down

0 comments on commit b0e6ab0

Please sign in to comment.