From 7943d40c6d7e177196f4f4f087490f0d09c8c031 Mon Sep 17 00:00:00 2001 From: Krzysztof Haller Date: Sun, 19 Jan 2025 00:52:21 +0100 Subject: [PATCH] Update the GET parameter for InventoryRepository It's causing error with correct downloading inventory by Type - BrickLink changed this from item_types to item_type --- src/Repositories/InventoryRepository.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Repositories/InventoryRepository.php b/src/Repositories/InventoryRepository.php index 89ed2fe..06ae2bf 100644 --- a/src/Repositories/InventoryRepository.php +++ b/src/Repositories/InventoryRepository.php @@ -26,7 +26,7 @@ public function index( ?Id $colorIds = null ): iterable { $uri = uri('inventories', [], [ - 'item_types' => toString($itemTypes, ItemType::default()), + 'item_type' => toString($itemTypes, ItemType::default()), 'status' => toString($status, InventoryStatus::default()), 'category_id' => toString($categoryIds, Id::default()), 'color_id' => toString($colorIds, Id::default()),