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