Refactors out notify conditions. Closes #1083

This commit is contained in:
James Brooks
2015-11-03 23:17:22 +00:00
parent ccc23fa70d
commit fcac32a67d
4 changed files with 10 additions and 6 deletions
@@ -56,6 +56,10 @@ class SendMaintenanceEmailNotificationHandler
*/
public function handle(MaintenanceWasScheduledEvent $event)
{
if (!$event->incident->notify) {
return false;
}
$data = AutoPresenter::decorate($event->incident);
foreach ($this->subscriber->all() as $subscriber) {