From 9ab423cb21bdf6935cbf4c6833d3ea3cdb670d12 Mon Sep 17 00:00:00 2001 From: Andrii Lugovyi Date: Mon, 21 Aug 2023 15:45:07 -0500 Subject: [PATCH] fix table name for UpdateLegacyStockStatus.php --- .../Model/ResourceModel/UpdateLegacyStockStatus.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/InventoryIndexer/Model/ResourceModel/UpdateLegacyStockStatus.php b/InventoryIndexer/Model/ResourceModel/UpdateLegacyStockStatus.php index ec828683a056..cf342aee8fef 100644 --- a/InventoryIndexer/Model/ResourceModel/UpdateLegacyStockStatus.php +++ b/InventoryIndexer/Model/ResourceModel/UpdateLegacyStockStatus.php @@ -45,7 +45,7 @@ public function __construct( public function execute(array $dataForUpdate): void { $connection = $this->resource->getConnection(); - $tableName = $connection->getTableName('cataloginventory_stock_status'); + $tableName = $this->resource->getTableName('cataloginventory_stock_status'); $productIds = $this->getProductIdsBySkus->execute(array_keys($dataForUpdate)); foreach ($dataForUpdate as $sku => $isSalable) { $connection->update(