diff --git a/Modules/Agents/Services/AgentService.php b/Modules/Agents/Services/AgentService.php index 2fbc39e..8429270 100644 --- a/Modules/Agents/Services/AgentService.php +++ b/Modules/Agents/Services/AgentService.php @@ -71,7 +71,7 @@ class AgentService $idAgentInsert = $agentIdBelonging; }else{ $idAgentInsert = $agentId; - // $this->modelCustomer->byPhone($dataInput['phone'])->notAgent($agentId)->delete(); + $this->modelCustomer->byPhone($dataInput['phone'])->notAgent($agentIdBelonging)->delete(); } $dataInsert['agent_id'] = $agentIdBelonging; $this->modelCustomer->insert($dataInsert);