diff --git a/InventoryIndexer/Model/ResourceModel/UpdateLegacyStockStatus.php b/InventoryIndexer/Model/ResourceModel/UpdateLegacyStockStatus.php index ec828683a05..cf342aee8fe 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(