mirror of
https://github.com/ad-aures/castopod.git
synced 2026-04-12 11:16:43 +02:00
feat(import): run podcast imports' processes asynchronously using tasks
- use codeigniter4/tasks project to handle cron tasks - use yassinedoghri/podcast-feed project to parse feeds for imports
This commit is contained in:
parent
85505d4b31
commit
d8e1d4031d
106 changed files with 1805 additions and 1097 deletions
|
|
@ -23,7 +23,7 @@ class DashboardController extends BaseController
|
|||
$podcastsCount = (new PodcastModel())->builder()
|
||||
->countAll();
|
||||
$podcastsLastPublishedAt = (new PodcastModel())->builder()
|
||||
->select('MAX(published_at) as last_published_at')
|
||||
->selectMax('published_at', 'last_published_at')
|
||||
->where('`published_at` <= UTC_TIMESTAMP()', null, false)
|
||||
->get()
|
||||
->getResultArray()[0]['last_published_at'];
|
||||
|
|
@ -36,7 +36,7 @@ class DashboardController extends BaseController
|
|||
$episodesCount = (new EpisodeModel())->builder()
|
||||
->countAll();
|
||||
$episodesLastPublishedAt = (new EpisodeModel())->builder()
|
||||
->select('MAX(published_at) as last_published_at')
|
||||
->selectMax('published_at', 'last_published_at')
|
||||
->where('`published_at` <= UTC_TIMESTAMP()', null, false)
|
||||
->get()
|
||||
->getResultArray()[0]['last_published_at'];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue