1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-05 18:52:44 +01:00

checking latest version logging

This commit is contained in:
David Bomba 2020-07-06 08:28:19 +10:00
parent 09e1043c13
commit 95a2eab410
2 changed files with 2 additions and 1 deletions

View File

@ -56,7 +56,6 @@ class Kernel extends ConsoleKernel
if(Ninja::isHosted()) {
$schedule->job(new AdjustEmailQuota())->daily();
$schedule->job(new SendFailedEmails())->daily();
$schedule->job(new CheckDbStatus())->everyFiveMinutes();
}
/* Run queue's in shared hosting with this*/
if (Ninja::isSelfHost()) {

View File

@ -36,6 +36,8 @@ class VersionCheck implements ShouldQueue
{
$version_file = file_get_contents(config('ninja.version_url'));
info("latest version = {$version_file}");
if ($version_file) {
Account::whereNotNull('id')->update(['latest_version' => $version_file]);
}