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:
Yassine Doghri 2023-06-21 16:17:11 +00:00
commit d8e1d4031d
106 changed files with 1805 additions and 1097 deletions

View file

@ -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()