Fix issue with components not reporting on incidents. Closes #1063

This commit is contained in:
James Brooks
2015-10-27 12:42:54 +00:00
parent 964a5fc514
commit 8d02a5a3a2

View File

@@ -30,11 +30,11 @@ class ReportIncidentCommandHandler
public function handle(ReportIncidentCommand $command)
{
$incident = Incident::create([
'name' => $command->name,
'status' => $command->status,
'message' => $command->message,
'visible' => $command->visible,
'component' => $command->component_id,
'name' => $command->name,
'status' => $command->status,
'message' => $command->message,
'visible' => $command->visible,
'component_id' => $command->component_id,
]);
// The incident occurred at a different time.