Do not collect contact email anymore

This commit is contained in:
James Brooks
2018-07-02 12:31:56 +01:00
parent e3079ba785
commit e4ca4ad880

View File

@@ -81,10 +81,6 @@ class Beacon implements BeaconContract
return; return;
} }
if (!($contactEmail = User::admins()->active()->first()->email)) {
$contactEmail = null;
}
$setting = app(Setting::class); $setting = app(Setting::class);
if (!$installId = $setting->get('install_id', null)) { if (!$installId = $setting->get('install_id', null)) {
@@ -94,12 +90,11 @@ class Beacon implements BeaconContract
} }
$payload = [ $payload = [
'install_id' => $installId, 'install_id' => $installId,
'version' => CACHET_VERSION, 'version' => CACHET_VERSION,
'docker' => $this->config->get('cachet.is_docker'), 'docker' => $this->config->get('cachet.is_docker'),
'database' => $this->config->get('database.default'), 'database' => $this->config->get('database.default'),
'contact_email' => $contactEmail, 'data' => [
'data' => [
'components' => Component::all()->count(), 'components' => Component::all()->count(),
'incidents' => Incident::all()->count(), 'incidents' => Incident::all()->count(),
'metrics' => Metric::all()->count(), 'metrics' => Metric::all()->count(),