Skip to content

Commit

Permalink
Don't call with twice
Browse files Browse the repository at this point in the history
  • Loading branch information
jbrooksuk committed Jul 13, 2019
1 parent 35279ce commit c74193e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/Controllers/StatusPageController.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public function showIndex()
$nextDate = $startDate->copy()->addDays($appIncidentDays)->toDateString();
}

$allIncidents = Incident::with('component')->with('updates.incident')
$allIncidents = Incident::with('component', 'updates.incident')
->where('visible', '>=', (int) !Auth::check())->whereBetween('occurred_at', [
$endDate->format('Y-m-d').' 00:00:00',
$startDate->format('Y-m-d').' 23:59:59',
Expand Down

0 comments on commit c74193e

Please sign in to comment.