mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
checking latest version logging
This commit is contained in:
parent
09e1043c13
commit
95a2eab410
@ -56,7 +56,6 @@ class Kernel extends ConsoleKernel
|
|||||||
if(Ninja::isHosted()) {
|
if(Ninja::isHosted()) {
|
||||||
$schedule->job(new AdjustEmailQuota())->daily();
|
$schedule->job(new AdjustEmailQuota())->daily();
|
||||||
$schedule->job(new SendFailedEmails())->daily();
|
$schedule->job(new SendFailedEmails())->daily();
|
||||||
$schedule->job(new CheckDbStatus())->everyFiveMinutes();
|
|
||||||
}
|
}
|
||||||
/* Run queue's in shared hosting with this*/
|
/* Run queue's in shared hosting with this*/
|
||||||
if (Ninja::isSelfHost()) {
|
if (Ninja::isSelfHost()) {
|
||||||
|
@ -36,6 +36,8 @@ class VersionCheck implements ShouldQueue
|
|||||||
{
|
{
|
||||||
$version_file = file_get_contents(config('ninja.version_url'));
|
$version_file = file_get_contents(config('ninja.version_url'));
|
||||||
|
|
||||||
|
info("latest version = {$version_file}");
|
||||||
|
|
||||||
if ($version_file) {
|
if ($version_file) {
|
||||||
Account::whereNotNull('id')->update(['latest_version' => $version_file]);
|
Account::whereNotNull('id')->update(['latest_version' => $version_file]);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user