mirror of
https://github.com/usetrmnl/byos_laravel.git
synced 2026-01-14 07:27:47 +00:00
Remove redundant check
This commit is contained in:
parent
4aa67ce02d
commit
35660bfa8d
1 changed files with 12 additions and 14 deletions
|
|
@ -49,8 +49,7 @@ Route::get('/display', function (Request $request) {
|
||||||
$refreshTimeOverride = null;
|
$refreshTimeOverride = null;
|
||||||
$nextPlaylistItem = $device->getNextPlaylistItem();
|
$nextPlaylistItem = $device->getNextPlaylistItem();
|
||||||
// Skip if cloud proxy is enabled for the device
|
// Skip if cloud proxy is enabled for the device
|
||||||
if (! $device->proxy_cloud || $nextPlaylistItem) {
|
if (! $device->proxy_cloud && $nextPlaylistItem) {
|
||||||
if ($nextPlaylistItem) {
|
|
||||||
$refreshTimeOverride = $nextPlaylistItem->playlist()->first()->refresh_time;
|
$refreshTimeOverride = $nextPlaylistItem->playlist()->first()->refresh_time;
|
||||||
$plugin = $nextPlaylistItem->plugin;
|
$plugin = $nextPlaylistItem->plugin;
|
||||||
|
|
||||||
|
|
@ -66,7 +65,6 @@ Route::get('/display', function (Request $request) {
|
||||||
|
|
||||||
GeneratePluginJob::dispatchSync($plugin->id, $markup);
|
GeneratePluginJob::dispatchSync($plugin->id, $markup);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
$plugin->refresh();
|
$plugin->refresh();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue