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
Loading
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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