mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal.git
synced 2026-08-19 04:24:12 +00:00
debug yd api
This commit is contained in:
+2
-2
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user