1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-21 00:41:34 +02:00

Minor fixes for logging

This commit is contained in:
David Bomba 2022-11-26 11:09:48 +11:00
parent ab45c40648
commit 5140046cb6

View File

@ -37,13 +37,14 @@ class VersionCheck implements ShouldQueue
{
$version_file = trim(@file_get_contents(config('ninja.version_url')));
nlog("latest version = {$version_file}");
if (Ninja::isSelfHost() && $version_file) {
Account::whereNotNull('id')->update(['latest_version' => $version_file]);
}
if (Ninja::isSelfHost()) {
nlog("latest version = {$version_file}");
$account = Account::first();
if (! $account) {