Skip to content

Commit

Permalink
🐛 Fix event suggestions variable + extend timeframe of sugestions (#2633
Browse files Browse the repository at this point in the history
)
  • Loading branch information
HerrLevin authored Jun 1, 2024
1 parent 013b08f commit 5629a5f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/Http/Controllers/Frontend/Admin/EventController.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public function renderList(Request $request): View {
public function renderSuggestions(): View {
return view('admin.events.suggestions', [
'suggestions' => EventSuggestion::where('processed', false)
->where('end', '>', DB::raw('CURRENT_TIMESTAMP'))
->where(DB::raw('DATE(end)'), '>=', DB::raw('DATE(CURRENT_TIMESTAMP)'))
->orderBy('begin')
->get()
]);
Expand Down
2 changes: 1 addition & 1 deletion resources/views/admin/events/suggestions.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
</thead>
<tbody>
@foreach($suggestions as $eventSuggestion)
@if($event->user->id === auth()->id() && !auth()->user()->hasRole('admin'))
@if($eventSuggestion->user->id === auth()->id() && !auth()->user()->hasRole('admin'))
@continue
@endif

Expand Down

0 comments on commit 5629a5f

Please sign in to comment.