From f541e30ab9fd2bec759e8d98d09249056dd362e4 Mon Sep 17 00:00:00 2001 From: volodymyr Date: Thu, 12 Sep 2024 19:13:59 +0300 Subject: [PATCH] fix: starToSearch deleted in no needed APIs [WTEL-5094] --- .../modules/queues/modules/agents/api/queueAgents.js | 1 - .../modules/teams/modules/agents/api/teamAgents.js | 2 +- .../modules/teams/modules/supervisors/api/teamSupervisors.js | 1 - 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/modules/contact-center/modules/queues/modules/agents/api/queueAgents.js b/src/modules/contact-center/modules/queues/modules/agents/api/queueAgents.js index 4ed2355de..72f87f948 100644 --- a/src/modules/contact-center/modules/queues/modules/agents/api/queueAgents.js +++ b/src/modules/contact-center/modules/queues/modules/agents/api/queueAgents.js @@ -32,7 +32,6 @@ const getQueueAgentsList = async (params) => { sort, } = applyTransform(params, [ merge(getDefaultGetParams()), - starToSearch('search'), sanitize(fieldsToSend), ]); diff --git a/src/modules/contact-center/modules/teams/modules/agents/api/teamAgents.js b/src/modules/contact-center/modules/teams/modules/agents/api/teamAgents.js index c029f9a69..3526f2876 100644 --- a/src/modules/contact-center/modules/teams/modules/agents/api/teamAgents.js +++ b/src/modules/contact-center/modules/teams/modules/agents/api/teamAgents.js @@ -29,7 +29,7 @@ const getTeamAgentsList = async (params) => { size = 10, search, sort, - } = applyTransform(params, [merge(getDefaultGetParams()), starToSearch('search')]); + } = applyTransform(params, [merge(getDefaultGetParams()),]); try { const response = await agentService.searchAgent( diff --git a/src/modules/contact-center/modules/teams/modules/supervisors/api/teamSupervisors.js b/src/modules/contact-center/modules/teams/modules/supervisors/api/teamSupervisors.js index e3c4fcd08..d21c9aa5e 100644 --- a/src/modules/contact-center/modules/teams/modules/supervisors/api/teamSupervisors.js +++ b/src/modules/contact-center/modules/teams/modules/supervisors/api/teamSupervisors.js @@ -18,7 +18,6 @@ const getTeamSupervisorsList = async (params) => { const { page, size, search, parentId, sort } = applyTransform(params, [ merge(getDefaultGetParams()), - starToSearch('search'), ]); try {