Skip to content
Snippets Groups Projects
Commit d10c4fd7 authored by Yassine Doghri's avatar Yassine Doghri
Browse files

fix(premium-podcasts): show premium flag only when podcast has published premium episodes

parent 7d21b350
No related branches found
No related tags found
No related merge requests found
......@@ -471,7 +471,9 @@ class EpisodeModel extends UuidModel
->where([
'podcast_id' => $podcastId,
'is_premium' => true,
])->countAllResults() > 0;
])
->where('`published_at` <= UTC_TIMESTAMP()', null, false)
->countAllResults() > 0;
}
public function fullTextSearch(string $query): ?BaseBuilder
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment