Merge pull request #1107 from cachethq/handlers

Tweaked three command handlers
This commit is contained in:
Graham Campbell
2015-11-07 16:31:58 +00:00
3 changed files with 1 additions and 6 deletions

View File

@@ -59,10 +59,7 @@ class ReportIncidentCommandHandler
]);
}
// Notify subscribers.
if ($command->notify) {
event(new IncidentWasReportedEvent($incident));
}
event(new IncidentWasReportedEvent($incident));
return $incident;
}

View File

@@ -39,7 +39,6 @@ class ReportMaintenanceCommandHandler
'visible' => 1,
]);
// Notify subscribers.
event(new MaintenanceWasScheduledEvent($maintenanceEvent));
return $maintenanceEvent;

View File

@@ -49,7 +49,6 @@ class UpdateIncidentCommandHandler
]);
}
// Notify subscribers.
event(new IncidentWasUpdatedEvent($incident));
return $incident;