From 2f1a8ee648d7777cba21be4e4612cf6801f83cbf Mon Sep 17 00:00:00 2001 From: Omair Saleh Date: Wed, 23 Aug 2023 14:06:43 +0800 Subject: [PATCH] fix yd api --- .../Processors/FetchContainersFromYdPortalProcessor.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Classes/Modules/PackingLists/Processors/FetchContainersFromYdPortalProcessor.php b/app/Classes/Modules/PackingLists/Processors/FetchContainersFromYdPortalProcessor.php index a80ab59d..8b9303d4 100644 --- a/app/Classes/Modules/PackingLists/Processors/FetchContainersFromYdPortalProcessor.php +++ b/app/Classes/Modules/PackingLists/Processors/FetchContainersFromYdPortalProcessor.php @@ -95,7 +95,7 @@ class FetchContainersFromYdPortalProcessor public function execute() { $maxFetchTime = Carbon::now()->subMonths(3); - $packingLists = PackingList::where('type', PackingListType::SHIPPING_PACKING_LIST)->whereDate('create_at', '>=', $maxFetchTime)->doesntHave('containers')->get(); + $packingLists = PackingList::where('type', PackingListType::SHIPPING_PACKING_LIST)->whereDate('created_at', '>=', $maxFetchTime)->doesntHave('containers')->get(); foreach ($packingLists as $packingList) { $time_start = microtime(true);