mirror of
https://github.com/ad-aures/castopod.git
synced 2026-04-14 20:17:46 +02:00
fix: sort episodes by published_at with unpublished episodes at the begining
set the right permissions for episode's publication date edit fixes #249
This commit is contained in:
parent
d0836f3ee3
commit
1686f840d1
3 changed files with 5 additions and 2 deletions
|
|
@ -422,6 +422,7 @@ class PodcastController extends BaseController
|
|||
{
|
||||
$episodes = (new EpisodeModel())
|
||||
->where('podcast_id', $podcastId)
|
||||
->orderBy('-`published_at`', '', false)
|
||||
->orderBy('created_at', 'desc')
|
||||
->findAll($limit);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue