From 62d32b893499baf52bf34a0dd492875ab5be363a Mon Sep 17 00:00:00 2001 From: "i.navrotskyj" Date: Fri, 3 May 2024 12:35:56 +0300 Subject: [PATCH] fix run trigger --- store/sqlstore/agent_store.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/store/sqlstore/agent_store.go b/store/sqlstore/agent_store.go index 6d521320..3d8e7468 100644 --- a/store/sqlstore/agent_store.go +++ b/store/sqlstore/agent_store.go @@ -406,7 +406,7 @@ func (s *SqlAgentStore) AgentTriggerJob(ctx context.Context, domainId int64, use coalesce(u.extension, '') extension, coalesce(u.email, '') email, coalesce(u.name::varchar, u.username) name, - u.profile as variables + coalesce(u.profile, '{}') as variables from directory.wbt_user u inner join call_center.cc_agent a on a.user_id = u.id inner join call_center.cc_team_trigger tr on tr.team_id = a.team_id