Skip to content

Commit

Permalink
Update component status validation for when an incident is reported
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasfagotti committed Oct 20, 2016
1 parent b040884 commit ab63b02
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/Bus/Commands/Incident/ReportIncidentCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ final class ReportIncidentCommand
'message' => 'string',
'visible' => 'bool',
'component_id' => 'int|required_with:component_status',
'component_status' => 'int|min:1|max:4|required_with:component_id',
'component_status' => 'int|min:0|max:4|required_with:component_id',
'notify' => 'bool',
'stickied' => 'bool',
'incident_date' => 'string',
Expand Down
2 changes: 1 addition & 1 deletion app/Bus/Commands/Incident/UpdateIncidentCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ final class UpdateIncidentCommand
'message' => 'string',
'visible' => 'bool',
'component_id' => 'int',
'component_status' => 'int|min:1|max:4|required_with:component_id',
'component_status' => 'int|min:0|max:4|required_with:component_id',
'notify' => 'bool',
'stickied' => 'bool',
'template' => 'string',
Expand Down

0 comments on commit ab63b02

Please sign in to comment.