mirror of
https://github.com/ad-aures/castopod.git
synced 2026-04-14 20:17:46 +02:00
fix(types): update fake seeders types + fix bugs
This commit is contained in:
parent
c72f4be6d8
commit
76a4bf3441
15 changed files with 78 additions and 59 deletions
|
|
@ -661,8 +661,8 @@ class EpisodeController extends BaseController
|
|||
$data = [
|
||||
'podcast_id' => $this->podcast->id,
|
||||
'episode_id' => $this->episode->id,
|
||||
'start_time' => (int) $soundbite['start_time'],
|
||||
'duration' => (int) $soundbite['duration'],
|
||||
'start_time' => (float) $soundbite['start_time'],
|
||||
'duration' => (float) $soundbite['duration'],
|
||||
'label' => $soundbite['label'],
|
||||
'updated_by' => user_id(),
|
||||
];
|
||||
|
|
@ -688,9 +688,9 @@ class EpisodeController extends BaseController
|
|||
return redirect()->route('soundbites-edit', [$this->podcast->id, $this->episode->id]);
|
||||
}
|
||||
|
||||
public function soundbiteDelete(int $soundbiteId): RedirectResponse
|
||||
public function soundbiteDelete(string $soundbiteId): RedirectResponse
|
||||
{
|
||||
(new SoundbiteModel())->deleteSoundbite($this->podcast->id, $this->episode->id, $soundbiteId);
|
||||
(new SoundbiteModel())->deleteSoundbite($this->podcast->id, $this->episode->id, (int) $soundbiteId);
|
||||
|
||||
return redirect()->route('soundbites-edit', [$this->podcast->id, $this->episode->id]);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue