@ -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);