Loading app/Models/PodcastModel.php +3 −3 Original line number Diff line number Diff line Loading @@ -335,7 +335,7 @@ class PodcastModel extends Model */ public function clearCache(array $data): array { $podcast = (new self())->getPodcastById((int) (is_array($data['id']) ? $data['id'][0] : $data['id'])); $podcast = (new self())->find((int) (is_array($data['id']) ? $data['id'][0] : $data['id'])); // delete cache for users' podcasts cache() Loading Loading @@ -427,7 +427,7 @@ class PodcastModel extends Model */ protected function setActorAvatar(array $data): array { $podcast = (new self())->getPodcastById((int) (is_array($data['id']) ? $data['id'][0] : $data['id'])); $podcast = (new self())->find((int) (is_array($data['id']) ? $data['id'][0] : $data['id'])); if ($podcast instanceof Podcast) { $podcastActor = (new ActorModel())->find($podcast->actor_id); Loading @@ -452,7 +452,7 @@ class PodcastModel extends Model */ protected function updatePodcastActor(array $data): array { $podcast = (new self())->getPodcastById((int) (is_array($data['id']) ? $data['id'][0] : $data['id'])); $podcast = (new self())->find((int) (is_array($data['id']) ? $data['id'][0] : $data['id'])); if ($podcast instanceof Podcast) { $actorModel = new ActorModel(); Loading Loading
app/Models/PodcastModel.php +3 −3 Original line number Diff line number Diff line Loading @@ -335,7 +335,7 @@ class PodcastModel extends Model */ public function clearCache(array $data): array { $podcast = (new self())->getPodcastById((int) (is_array($data['id']) ? $data['id'][0] : $data['id'])); $podcast = (new self())->find((int) (is_array($data['id']) ? $data['id'][0] : $data['id'])); // delete cache for users' podcasts cache() Loading Loading @@ -427,7 +427,7 @@ class PodcastModel extends Model */ protected function setActorAvatar(array $data): array { $podcast = (new self())->getPodcastById((int) (is_array($data['id']) ? $data['id'][0] : $data['id'])); $podcast = (new self())->find((int) (is_array($data['id']) ? $data['id'][0] : $data['id'])); if ($podcast instanceof Podcast) { $podcastActor = (new ActorModel())->find($podcast->actor_id); Loading @@ -452,7 +452,7 @@ class PodcastModel extends Model */ protected function updatePodcastActor(array $data): array { $podcast = (new self())->getPodcastById((int) (is_array($data['id']) ? $data['id'][0] : $data['id'])); $podcast = (new self())->find((int) (is_array($data['id']) ? $data['id'][0] : $data['id'])); if ($podcast instanceof Podcast) { $actorModel = new ActorModel(); Loading