diff --git a/app/Jobs/Util/VersionCheck.php b/app/Jobs/Util/VersionCheck.php index cdb2a280a8..7ee5a047d3 100644 --- a/app/Jobs/Util/VersionCheck.php +++ b/app/Jobs/Util/VersionCheck.php @@ -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) {