fix yd api

This commit is contained in:
Omair Saleh
2023-08-23 14:06:43 +08:00
parent aacf4ea53d
commit 2f1a8ee648
@@ -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);