Skip to content

Commit

Permalink
fix(orders): reset index on collection
Browse files Browse the repository at this point in the history
  • Loading branch information
EdieLemoine committed Nov 6, 2023
1 parent 0c1c1ad commit 5e92f23
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Pdk/Order/Repository/PsPdkOrderRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
use MyParcelNL\Pdk\Base\Contract\CurrencyServiceInterface;
use MyParcelNL\Pdk\Base\Contract\WeightServiceInterface;
use MyParcelNL\Pdk\Base\Support\Collection;
use MyParcelNL\Pdk\Shipment\Model\CustomsDeclaration;
use MyParcelNL\Pdk\Shipment\Model\CustomsDeclarationItem;
use MyParcelNL\Pdk\Shipment\Model\Shipment;
use MyParcelNL\Pdk\Storage\MemoryCacheStorage;
use MyParcelNL\PrestaShop\Contract\PsOrderServiceInterface;
Expand Down Expand Up @@ -230,7 +228,8 @@ protected function getShipments(PsOrder $psOrder): Collection
'id' => $shipment->getShipmentId(),
'orderId' => $shipment->getOrderId(),
]);
});
})
->values();
}

/**
Expand Down

0 comments on commit 5e92f23

Please sign in to comment.