This commit is contained in:
Oliver Davies 2025-07-13 17:42:17 +01:00
parent 6b54631f46
commit 3c04dfd710

View file

@ -7,6 +7,7 @@ namespace Drupal\opd_podcast\Repository;
use Drupal\Core\Entity\EntityTypeManagerInterface;
use Drupal\node\NodeInterface;
use Drupal\node\NodeStorageInterface;
use Drupal\opd_podcast\Episode;
readonly final class PodcastNodeRepository {
@ -23,7 +24,7 @@ readonly final class PodcastNodeRepository {
$query = $this->nodeStorage->getQuery();
$query->accessCheck();
$query->condition('status', NodeInterface::PUBLISHED);
$query->condition('type', 'podcast_episode');
$query->condition('type', Episode::NODE_TYPE);
$nodeIds = $query->execute();