Skip to content

Commit 034a086

Browse files
author
Mike Weis
committed
MAGETWO-28252: Catalog Inventory Integration API
- updated per code review
1 parent 5c5c339 commit 034a086

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

app/code/Magento/CatalogInventory/Model/Plugin/AroundProductRepositorySave.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,6 @@ public function aroundSave(
6464
$stockItem->setProductId($result->getId());
6565
$stockItem->setWebsiteId($this->storeManager->getStore($result->getStoreId())->getWebsiteId());
6666

67-
// TODO: might need to handle a *new* -v- *update* for the stockItem
68-
// ... StockRegistry: $this->stockItemRepository->save
69-
// TODO: ensure this is correct logic for PUT/update and POST/create
70-
7167
$this->stockRegistry->updateStockItemBySku($result->getSku(), $stockItem);
7268

7369
// since we just saved a portion of the product, force a reload of it before returning it

0 commit comments

Comments
 (0)