mirror of
https://github.com/ad-aures/castopod.git
synced 2026-04-11 18:56:42 +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
|
|
@ -79,12 +79,12 @@ class PersonController extends BaseController
|
|||
$db->transStart();
|
||||
|
||||
$person = new Person([
|
||||
'created_by' => user_id(),
|
||||
'updated_by' => user_id(),
|
||||
'full_name' => $this->request->getPost('full_name'),
|
||||
'unique_name' => $this->request->getPost('unique_name'),
|
||||
'information_url' => $this->request->getPost('information_url'),
|
||||
'avatar' => $this->request->getFile('avatar'),
|
||||
'created_by' => user_id(),
|
||||
'updated_by' => user_id(),
|
||||
]);
|
||||
|
||||
$personModel = new PersonModel();
|
||||
|
|
@ -129,13 +129,12 @@ class PersonController extends BaseController
|
|||
->with('errors', $this->validator->getErrors());
|
||||
}
|
||||
|
||||
$this->person->updated_by = user_id();
|
||||
$this->person->full_name = $this->request->getPost('full_name');
|
||||
$this->person->unique_name = $this->request->getPost('unique_name');
|
||||
$this->person->information_url = $this->request->getPost('information_url');
|
||||
$this->person->setAvatar($this->request->getFile('avatar'));
|
||||
|
||||
$this->person->updated_by = user_id();
|
||||
|
||||
$personModel = new PersonModel();
|
||||
if (! $personModel->update($this->person->id, $this->person)) {
|
||||
return redirect()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue