mirror of
https://github.com/ad-aures/castopod.git
synced 2026-04-12 03:06:43 +02:00
fix: display bandwidth limit on dashboard when set in .env
This commit is contained in:
parent
fa6bb2f492
commit
a2a87abf7c
5 changed files with 21 additions and 1 deletions
|
|
@ -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,
|
||||
];
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue