Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WTEL-3907 #41

Merged
merged 1 commit into from
Oct 9, 2023
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
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
Loading