Skip to content

Commit

Permalink
[5.x] Only index entries with published status (#10778)
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonvarga authored Sep 6, 2024
1 parent a1160e6 commit 443a27d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Search/Searchables/Entries.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,6 @@ public function find(array $ids): Collection

protected function defaultFilter()
{
return fn ($item) => $item->published();
return fn ($item) => $item->status() === 'published';
}
}

0 comments on commit 443a27d

Please sign in to comment.