From 8d02a5a3a213d9f552c84600c7492ca699aa5674 Mon Sep 17 00:00:00 2001 From: James Brooks Date: Tue, 27 Oct 2015 12:42:54 +0000 Subject: [PATCH] Fix issue with components not reporting on incidents. Closes #1063 --- .../Commands/Incident/ReportIncidentCommandHandler.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/Handlers/Commands/Incident/ReportIncidentCommandHandler.php b/app/Handlers/Commands/Incident/ReportIncidentCommandHandler.php index bc6b8fcb..10bd6291 100644 --- a/app/Handlers/Commands/Incident/ReportIncidentCommandHandler.php +++ b/app/Handlers/Commands/Incident/ReportIncidentCommandHandler.php @@ -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.