mirror of
https://github.com/ad-aures/castopod.git
synced 2026-04-04 07:19:03 +02:00
chore: update CI to v4.6.3 + all php and js dependencies
This commit is contained in:
parent
96b2df15b0
commit
346c00e7b5
206 changed files with 6239 additions and 5336 deletions
|
|
@ -20,9 +20,11 @@ class DashboardController extends BaseController
|
|||
public function index(): string
|
||||
{
|
||||
$podcastsData = [];
|
||||
$podcastsCount = (new PodcastModel())->builder()
|
||||
$podcastsCount = new PodcastModel()
|
||||
->builder()
|
||||
->countAll();
|
||||
$podcastsLastPublishedAt = (new PodcastModel())->builder()
|
||||
$podcastsLastPublishedAt = new PodcastModel()
|
||||
->builder()
|
||||
->selectMax('published_at', 'last_published_at')
|
||||
->where('`published_at` <= UTC_TIMESTAMP()', null, false)
|
||||
->get()
|
||||
|
|
@ -33,9 +35,11 @@ class DashboardController extends BaseController
|
|||
);
|
||||
|
||||
$episodesData = [];
|
||||
$episodesCount = (new EpisodeModel())->builder()
|
||||
$episodesCount = new EpisodeModel()
|
||||
->builder()
|
||||
->countAll();
|
||||
$episodesLastPublishedAt = (new EpisodeModel())->builder()
|
||||
$episodesLastPublishedAt = new EpisodeModel()
|
||||
->builder()
|
||||
->selectMax('published_at', 'last_published_at')
|
||||
->where('`published_at` <= UTC_TIMESTAMP()', null, false)
|
||||
->get()
|
||||
|
|
@ -45,7 +49,8 @@ class DashboardController extends BaseController
|
|||
$episodesLastPublishedAt,
|
||||
);
|
||||
|
||||
$totalUploaded = (new MediaModel())->builder()
|
||||
$totalUploaded = new MediaModel()
|
||||
->builder()
|
||||
->selectSum('file_size')
|
||||
->get()
|
||||
->getResultArray()[0];
|
||||
|
|
@ -66,7 +71,8 @@ class DashboardController extends BaseController
|
|||
|
||||
$onlyPodcastId = null;
|
||||
if ($podcastsData['number_of_podcasts'] === 1) {
|
||||
$onlyPodcastId = (new PodcastModel())->first()
|
||||
$onlyPodcastId = new PodcastModel()
|
||||
->first()
|
||||
->id;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue