Skip to content

Commit

Permalink
missing data
Browse files Browse the repository at this point in the history
  • Loading branch information
edalzell committed Aug 30, 2021
1 parent 1b8f51b commit 1d6d1a9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Notifications/AbstractAlert.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,17 @@ public function via($notifiable)
* @param mixed $notifiable
* @return array
*/
public function toArray($notifiable)
public function toArray()
{
return [
'email' => $notifiable->email(),
'event' => $this->event,
'date' => Arr::get($this->alert, 'date'),
'is_up' => Arr::get($this->alert, 'alert.is_up'),
'locations' =>Arr::get($this->alert, 'locations'),
'output' => Arr::get($this->alert, 'alert.output'),
'output' => Arr::get($this->alert, 'alert.short_output'),
'subject' => $this->subject,
'test' => Arr::get($this->alert, 'name'),
'type' => Arr::get($this->alert, 'monitoring_service_type'),
'test' => Arr::get($this->alert, 'service.name'),
'type' => Arr::get($this->alert, 'service.monitoring_service_type'),
];
}
}

0 comments on commit 1d6d1a9

Please sign in to comment.