From c74193e37e07b7a2858ffc1a26df01c574279afa Mon Sep 17 00:00:00 2001 From: James Brooks Date: Sat, 13 Jul 2019 17:31:27 +0100 Subject: [PATCH] Don't call with twice --- app/Http/Controllers/StatusPageController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/StatusPageController.php b/app/Http/Controllers/StatusPageController.php index cd431b4c..ba576a55 100644 --- a/app/Http/Controllers/StatusPageController.php +++ b/app/Http/Controllers/StatusPageController.php @@ -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',