4i: Ensure only articles are returned

Update the `getAll()` method on the article repository to only return
article nodes.
This commit is contained in:
Oliver Davies 2020-03-19 21:28:10 +00:00
parent e79a63476e
commit 76a19ff21b

View file

@ -16,7 +16,9 @@ class ArticleRepository {
}
public function getAll(): array {
return $this->nodeStorage->loadMultiple();
return $this->nodeStorage->loadByProperties([
'type' => 'article',
]);
}
}