Skip to content

Commit

Permalink
Category index scopes Eventy filter (rapidez#537)
Browse files Browse the repository at this point in the history
  • Loading branch information
BobWez98 authored Jul 26, 2024
1 parent 605c7de commit 3a1a4a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Commands/IndexProductsCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public function handle()
$bar = $this->output->createProgressBar($productQuery->getQuery()->getCountForPagination());
$bar->start();

$categories = Category::query()
$categories = Category::withEventyGlobalScopes('index.category.scopes')
->where('catalog_category_flat_store_' . config('rapidez.store') . '.entity_id', '<>', Rapidez::config('catalog/category/root_id', 2))
->pluck('name', 'entity_id');

Expand Down

0 comments on commit 3a1a4a7

Please sign in to comment.