From f85404858aa39c5f1034dbc39301c9b99832ab70 Mon Sep 17 00:00:00 2001 From: nocode Date: Thu, 18 Jul 2024 16:37:47 +0700 Subject: [PATCH] remove required email add customer --- Modules/Agents/Services/AgentService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/Agents/Services/AgentService.php b/Modules/Agents/Services/AgentService.php index 8429270..0ff21cd 100644 --- a/Modules/Agents/Services/AgentService.php +++ b/Modules/Agents/Services/AgentService.php @@ -73,7 +73,7 @@ class AgentService $idAgentInsert = $agentId; $this->modelCustomer->byPhone($dataInput['phone'])->notAgent($agentIdBelonging)->delete(); } - $dataInsert['agent_id'] = $agentIdBelonging; + $dataInsert['agent_id'] = $idAgentInsert; $this->modelCustomer->insert($dataInsert); }