mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-16 01:06:46 +00:00
Fix #3789
This commit is contained in:
@@ -26,6 +26,7 @@ namespace FireflyIII\Console\Commands;
|
|||||||
use FireflyIII\Support\System\GeneratesInstallationId;
|
use FireflyIII\Support\System\GeneratesInstallationId;
|
||||||
use FireflyIII\User;
|
use FireflyIII\User;
|
||||||
use Illuminate\Console\Command;
|
use Illuminate\Console\Command;
|
||||||
|
use Illuminate\Database\QueryException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class UpgradeFireflyInstructions.
|
* Class UpgradeFireflyInstructions.
|
||||||
@@ -70,7 +71,11 @@ class UpgradeFireflyInstructions extends Command
|
|||||||
app('telemetry')->feature('system.database.driver', env('DB_CONNECTION', '(unknown)'));
|
app('telemetry')->feature('system.database.driver', env('DB_CONNECTION', '(unknown)'));
|
||||||
app('telemetry')->feature('system.os.is_docker', $isDocker);
|
app('telemetry')->feature('system.os.is_docker', $isDocker);
|
||||||
app('telemetry')->feature('system.command.executed', $this->signature);
|
app('telemetry')->feature('system.command.executed', $this->signature);
|
||||||
|
try {
|
||||||
app('telemetry')->feature('system.users.count', (string)User::count());
|
app('telemetry')->feature('system.users.count', (string)User::count());
|
||||||
|
} catch (QueryException $e) {
|
||||||
|
// ignore error.
|
||||||
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user