Skip to content

Commit

Permalink
magento/graphql-ce#463: Query category for disabled catalog with prod…
Browse files Browse the repository at this point in the history
…ucts returns the products count
  • Loading branch information
lenaorobei committed Jun 21, 2019
1 parent 525a1e9 commit af96830
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
declare(strict_types=1);

namespace Magento\CatalogGraphQl\Model\Resolver\Category;

use Magento\Catalog\Api\Data\CategoryInterface;
Expand Down Expand Up @@ -33,8 +35,7 @@ class CheckCategoryIsActive
public function __construct(
CollectionFactory $collectionFactory,
MetadataPool $metadata
)
{
) {
$this->collectionFactory = $collectionFactory;
$this->metadata = $metadata;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,7 @@ public function __construct(
\Magento\CatalogGraphQl\Model\Resolver\Products\DataProvider\CategoryTree $categoryTree,
ExtractDataFromCategoryTree $extractDataFromCategoryTree,
CheckCategoryIsActive $checkCategoryIsActive
)
{
) {
$this->categoryTree = $categoryTree;
$this->extractDataFromCategoryTree = $extractDataFromCategoryTree;
$this->checkCategoryIsActive = $checkCategoryIsActive;
Expand Down

0 comments on commit af96830

Please sign in to comment.