Commit 5f0663f6 authored by Sean O'Donnell's avatar Sean O'Donnell

bug fix

parent ed78cf2f
......@@ -66,7 +66,7 @@ class ProcessProcesses implements ShouldQueue
ProcessActivity::dispatch($activity->id);
}
}
$processes->notify(new ProcessesProcessed($processes));
$processes->notify(new ProcessesProcessed());
}
......
......@@ -27,7 +27,7 @@ class ProcessesProcessed extends Notification
* @param mixed $notifiable
* @return array
*/
public function via($notifiable)
public function via()
{
return ['slack'];
}
......@@ -38,7 +38,7 @@ class ProcessesProcessed extends Notification
* @param mixed $notifiable
* @return \Illuminate\Notifications\Messages\MailMessage
*/
public function toMail($notifiable)
public function toMail()
{
return (new MailMessage)
->line('The introduction to the notification.')
......@@ -52,14 +52,14 @@ class ProcessesProcessed extends Notification
* @param mixed $notifiable
* @return array
*/
public function toArray($notifiable)
public function toArray()
{
return [
//
];
}
public function toSlack($notifiable)
public function toSlack()
{
return (new SlackMessage)
->from('Production')
......
......@@ -18,7 +18,7 @@ class Processes extends Model
public function routeNotificationForSlack($notification)
public function routeNotificationForSlack()
{
return 'https://hooks.slack.com/services/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';
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment