mirror of
https://github.com/CachetHQ/Cachet.git
synced 2025-01-17 13:38:20 +01:00
Don't call with twice
This commit is contained in:
parent
35279cebe4
commit
c74193e37e
@ -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',
|
||||
|
Loading…
x
Reference in New Issue
Block a user