diff --git a/vendor/magento/module-inventory-indexer/Model/ResourceModel/UpdateLegacyStockStatus.php b/vendor/magento/module-inventory-indexer/Model/ResourceModel/UpdateLegacyStockStatus.php --- a/vendor/magento/module-inventory-indexer/Model/ResourceModel/UpdateLegacyStockStatus.php +++ b/vendor/magento/module-inventory-indexer/Model/ResourceModel/UpdateLegacyStockStatus.php @@ -45,7 +45,7 @@ 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(