Skip to content

Commit

Permalink
fix(core): fix issues with fetch entries collection.
Browse files Browse the repository at this point in the history
  • Loading branch information
Awilum committed Dec 21, 2020
1 parent 2b0203a commit fd433c0
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions app/Controllers/SitemapController.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,11 @@ public function index(Request $request, Response $response) : Response
{
$sitemap = [];

$entries = arrays(flextype('entries')->fetch('', ['collection' => true, 'depth' => '>0']))->sortBy('modified_at', 'ASC')->all();

$entries = flextype('entries')
->fetch('', ['collection' => true, 'find' => ['depth' => '> 0']])
->sortBy('modified_at', 'asc')
->all();

foreach ($entries as $entry) {

// Check entry visibility field
Expand Down

0 comments on commit fd433c0

Please sign in to comment.