Skip to content

Commit c982329

Browse files
committed
ACP2E-3256: [GraphQl] [Feature Request] min/max qty allowed in shopping cart for products
1 parent e99ca6e commit c982329

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/code/Magento/CatalogInventoryGraphQl/Model/Resolver/MaxSaleQtyResolver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,6 @@ public function resolve(
4343
array $args = null
4444
) {
4545
$stockItem = $this->stockItemService->getStockItem($value['model']);
46-
return $stockItem ? (float)$stockItem->getMaxSaleQty() : null;
46+
return $stockItem ? $stockItem->getMaxSaleQty() : null;
4747
}
4848
}

app/code/Magento/CatalogInventoryGraphQl/Model/Resolver/MinSaleQtyResolver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,6 @@ public function resolve(
4343
array $args = null
4444
) {
4545
$stockItem = $this->stockItemService->getStockItem($value['model']);
46-
return $stockItem ? (float)$stockItem->getMinSaleQty() : null;
46+
return $stockItem ? $stockItem->getMinSaleQty() : null;
4747
}
4848
}

0 commit comments

Comments
 (0)