Minor fixes for logging
This commit is contained in:
parent
ab45c40648
commit
5140046cb6
1 changed files with 3 additions and 2 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue