Don't call with twice

This commit is contained in:
James Brooks 2019-07-13 17:31:27 +01:00
parent 35279cebe4
commit c74193e37e

View File

@ -96,7 +96,7 @@ class StatusPageController extends AbstractApiController
$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',