fix: display bandwidth limit on dashboard when set in .env

This commit is contained in:
Yassine Doghri 2022-12-28 16:57:14 +00:00
commit a2a87abf7c
5 changed files with 21 additions and 1 deletions

View file

@ -70,10 +70,14 @@ class DashboardController extends BaseController
->id;
}
$bandwidthLimit = config('App')
->bandwidthLimit;
$data = [
'podcastsData' => $podcastsData,
'episodesData' => $episodesData,
'storageData' => $storageData,
'bandwidthLimit' => $bandwidthLimit === null ? null : formatBytes($bandwidthLimit * 1000000000),
'onlyPodcastId' => $onlyPodcastId,
];