debug yd api

This commit is contained in:
Omair Saleh
2023-02-17 10:55:46 +08:00
parent b3cc805e78
commit 0f0a32488a
@@ -54,10 +54,10 @@ class FetchDeliveryUpdatesFromYdPortalProcessor
*/
public function execute()
{
$packingLists = PackingList::where('type', PackingListType::SHIPPING_PACKING_LIST)->whereRaw('LENGTH(reference) > 12')->doesntHave('transports')->get()->pluck('reference');
dd($packingLists);
$packingLists = PackingList::where('type', PackingListType::SHIPPING_PACKING_LIST)->whereRaw('LENGTH(reference) > 12')->doesntHave('transports')->get()->pluck('reference')->reverse();
foreach ($packingLists->chunk(50) as $chunk) {
foreach ($chunk as $packingList){
if(!$packingList->reference) continue;
$time_start = microtime(true);