Merge pull request #1107 from cachethq/handlers
Tweaked three command handlers
This commit is contained in:
@@ -59,10 +59,7 @@ class ReportIncidentCommandHandler
|
||||
]);
|
||||
}
|
||||
|
||||
// Notify subscribers.
|
||||
if ($command->notify) {
|
||||
event(new IncidentWasReportedEvent($incident));
|
||||
}
|
||||
event(new IncidentWasReportedEvent($incident));
|
||||
|
||||
return $incident;
|
||||
}
|
||||
|
||||
@@ -39,7 +39,6 @@ class ReportMaintenanceCommandHandler
|
||||
'visible' => 1,
|
||||
]);
|
||||
|
||||
// Notify subscribers.
|
||||
event(new MaintenanceWasScheduledEvent($maintenanceEvent));
|
||||
|
||||
return $maintenanceEvent;
|
||||
|
||||
@@ -49,7 +49,6 @@ class UpdateIncidentCommandHandler
|
||||
]);
|
||||
}
|
||||
|
||||
// Notify subscribers.
|
||||
event(new IncidentWasUpdatedEvent($incident));
|
||||
|
||||
return $incident;
|
||||
|
||||
Reference in New Issue
Block a user