Skip to content

Commit

Permalink
Merge pull request #41 from webitel/v23.09
Browse files Browse the repository at this point in the history
WTEL-3907
  • Loading branch information
navrotskyj authored Oct 9, 2023
2 parents acd8265 + b0e6ab0 commit 8fbda67
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 8fbda67

Please sign in to comment.