From 335a9f845ee4ae50e12b285dc68a630cd10235f8 Mon Sep 17 00:00:00 2001 From: omair saleh Date: Sat, 11 Sep 2021 00:09:02 +0800 Subject: [PATCH] limit delivery list to first 50 --- .../Processors/FetchDeliveryListFromVTPortalProcessor.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Classes/Modules/PackingLists/Processors/FetchDeliveryListFromVTPortalProcessor.php b/app/Classes/Modules/PackingLists/Processors/FetchDeliveryListFromVTPortalProcessor.php index c8ec591d..7e7f7240 100644 --- a/app/Classes/Modules/PackingLists/Processors/FetchDeliveryListFromVTPortalProcessor.php +++ b/app/Classes/Modules/PackingLists/Processors/FetchDeliveryListFromVTPortalProcessor.php @@ -55,7 +55,7 @@ class FetchDeliveryListFromVTPortalProcessor public function execute(){ try { - $packingLists = PackingList::where('type', '=', PackingListType::SHIPPING_PACKING_LIST)->whereIn('status', [ApprovalStatus::APPROVED, ApprovalStatus::SUSPENDED])->get(); + $packingLists = PackingList::where('type', '=', PackingListType::SHIPPING_PACKING_LIST)->whereIn('status', [ApprovalStatus::APPROVED, ApprovalStatus::SUSPENDED])->limit(50)->get(); /** @var PackingList $packingList */ foreach($packingLists as $packingList){