mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal.git
synced 2026-09-02 11:24:05 +00:00
Laravel Vapor - Debug Endpoint request timed out
This commit is contained in:
@@ -27,13 +27,14 @@ class PackingListWithStorageResource extends JsonResource
|
||||
$transactions = $this->transactions()->whereNotIn('transactions.status', [0, 1])->whereIn('transactions.type', [TransactionType::SHIPPING_INVOICE, TransactionType::STORAGE_INVOICE])->get();
|
||||
$storages = [];
|
||||
|
||||
if($this->storages){
|
||||
$transactionId = $shippingTransaction->id;
|
||||
$filteredStorages = array_filter($this->storages, function ($storage) use ($transactionId) {
|
||||
return isset($storage['parentInvoiceId']) && $storage['parentInvoiceId'] == $transactionId;
|
||||
});
|
||||
$storages = $filteredStorages;
|
||||
}
|
||||
//cief todo: debugging
|
||||
// if($this->storages){
|
||||
// $transactionId = $shippingTransaction->id;
|
||||
// $filteredStorages = array_filter($this->storages, function ($storage) use ($transactionId) {
|
||||
// return isset($storage['parentInvoiceId']) && $storage['parentInvoiceId'] == $transactionId;
|
||||
// });
|
||||
// $storages = $filteredStorages;
|
||||
// }
|
||||
|
||||
return [
|
||||
'id' => $this->id,
|
||||
|
||||
Reference in New Issue
Block a user