mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-05 04:03:26 +00:00
Slightly more robust configuration polling.
This commit is contained in:
@@ -43,8 +43,9 @@ trait UpdateTrait
|
||||
{
|
||||
Log::debug('Now in getLatestRelease()');
|
||||
/** @var UpdateRequestInterface $checker */
|
||||
$checker = app(UpdateRequestInterface::class);
|
||||
$channel = app('fireflyconfig')->get('update_channel', 'stable')->data;
|
||||
$checker = app(UpdateRequestInterface::class);
|
||||
$channelConfig = app('fireflyconfig')->get('update_channel', 'stable');
|
||||
$channel = $channelConfig ? $channelConfig->data : 'stable';
|
||||
|
||||
return $checker->getUpdateInformation($channel);
|
||||
}
|
||||
|
Reference in New Issue
Block a user