We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b4fc10d + 13d7bde commit 500b51fCopy full SHA for 500b51f
app/code/Magento/CatalogGraphQl/Model/Category/LevelCalculator.php
@@ -37,7 +37,7 @@ public function calculate(int $rootCategoryId) : int
37
{
38
$connection = $this->resourceConnection->getConnection();
39
$select = $connection->select()
40
- ->from($connection->getTableName('catalog_category_entity'), 'level')
+ ->from($this->resourceConnection->getTableName('catalog_category_entity'), 'level')
41
->where($this->resourceCategory->getLinkField() . " = ?", $rootCategoryId);
42
return (int) $connection->fetchOne($select);
43
}
0 commit comments