ci(bundle): update bundle-prepare script

This commit is contained in:
Yassine Doghri 2021-06-10 08:14:06 +00:00
parent 71b1b5f775
commit ac5b2d6e94
No known key found for this signature in database
GPG Key ID: 3E7F89498B960C9F
3 changed files with 6 additions and 3 deletions

View File

@ -42,7 +42,7 @@ class EpisodeController extends BaseController
if (count($params) > 1) { if (count($params) > 1) {
if ( if (
! ($this->episode = (new EpisodeModel()) ! ($episode = (new EpisodeModel())
->where([ ->where([
'id' => $params[1], 'id' => $params[1],
'podcast_id' => $params[0], 'podcast_id' => $params[0],
@ -52,6 +52,8 @@ class EpisodeController extends BaseController
throw PageNotFoundException::forPageNotFound(); throw PageNotFoundException::forPageNotFound();
} }
$this->episode = $episode;
unset($params[1]); unset($params[1]);
unset($params[0]); unset($params[0]);
} }

View File

@ -33,8 +33,9 @@ class PodcastController extends BaseController
} }
if ( if (
($this->podcast = (new PodcastModel())->getPodcastById((int) $params[0])) !== null ($podcast = (new PodcastModel())->getPodcastById((int) $params[0])) !== null
) { ) {
$this->podcast = $podcast;
return $this->{$method}(); return $this->{$method}();
} }

View File

@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
# install only production dependencies using the --no-dev option # install only production dependencies using the --no-dev option
php composer.phar install --no-dev --prefer-dist --no-ansi --no-interaction --no-progress --ignore-platform-reqs composer install --no-dev --prefer-dist --no-ansi --no-interaction --no-progress --ignore-platform-reqs
# build all production static assets (css, js, images, icons, fonts, etc.) # build all production static assets (css, js, images, icons, fonts, etc.)
npm run build npm run build