Add telemetry prompt in p:environment:setup command

This commit is contained in:
Matthew Penner 2022-12-04 14:59:45 -07:00
parent 250c557e23
commit fa7503816a
No known key found for this signature in database
3 changed files with 12 additions and 5 deletions

View file

@ -56,10 +56,10 @@ class Kernel extends ConsoleKernel
{
$settingsRepository = app()->make(SettingsRepository::class);
$uuid = $settingsRepository->get('app:uuid');
$uuid = $settingsRepository->get('app:telemetry:uuid');
if (is_null($uuid)) {
$uuid = Uuid::uuid4()->toString();
$settingsRepository->set('app:uuid', $uuid);
$settingsRepository->set('app:telemetry:uuid', $uuid);
}
// Calculate a fixed time to run the data push at, this will be the same time every day.