From 8137b89e69792d1f5803f2abba07e547976e22d7 Mon Sep 17 00:00:00 2001 From: nocode Date: Thu, 18 Jul 2024 16:57:12 +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 7622e5f..ec1abb8 100644 --- a/Modules/Agents/Services/AgentService.php +++ b/Modules/Agents/Services/AgentService.php @@ -61,7 +61,7 @@ class AgentService $isInAgentDistance = $this->modelCustomer->byPhone($dataInput['phone'])->whereDate('created_at', '>', $dateNotToo)->orderBy('created_at','asc')->get(); // dd(empty($isInAgentDistance[0])); if (empty($isInAgentDistance[0])) { // ko co trong DS 15 ngay - dd(1); + // dd(1); $dataInsert['agent_id'] = $agentId; $this->modelCustomer->insert($dataInsert); $this->modelCustomer->byPhone($dataInput['phone'])->notAgent($agentId)->delete();