@@ -36,8 +36,9 @@ |
||
36 | 36 | $calendar = Calendar::findOrFail($calendarId); |
37 | 37 | $this->authorize($calendar); |
38 | 38 | $timeslots = $calendar->timeslots(); |
39 | - if ($request->query('current')) |
|
40 | - $timeslots->where('time_start', '>=', new \DateTime()); |
|
39 | + if ($request->query('current')) { |
|
40 | + $timeslots->where('time_start', '>=', new \DateTime()); |
|
41 | + } |
|
41 | 42 | return $timeslots->get(); |
42 | 43 | } |
43 | 44 |