1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 21:22:58 +01: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'))); $version_file = trim(@file_get_contents(config('ninja.version_url')));
nlog("latest version = {$version_file}");
if (Ninja::isSelfHost() && $version_file) { if (Ninja::isSelfHost() && $version_file) {
Account::whereNotNull('id')->update(['latest_version' => $version_file]); Account::whereNotNull('id')->update(['latest_version' => $version_file]);
} }
if (Ninja::isSelfHost()) { if (Ninja::isSelfHost()) {
nlog("latest version = {$version_file}");
$account = Account::first(); $account = Account::first();
if (! $account) { if (! $account) {