remove required email add customer

main
nocode 1 year ago
parent 2116f34503
commit d1e54e90c4
  1. 2
      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);

Loading…
Cancel
Save