RVRNEXT-45 show recent events as well with upcoming events

This commit is contained in:
bence committed 2023-07-08 13:52:24 +02:00
1 parent 61eb2404a2
commit 5ebce653dc
5 files changed
+25 -16

No files matched your search

+1 -1
View File
@@ -44,7 +44,7 @@ class HomeController implements IAuthenticationRequired
return new HtmlContent('home', [
'communities' => $communities,
'upcomingEvents' => iterator_to_array($this->eventRepository->getUpcomingByUser($user, new DateTime(), 3, true, ['community']))
'upcomingAndRecentEvents' => iterator_to_array($this->eventRepository->getUpcomingAndRecentByUser($user, new DateTime(), 30, 3, true, ['community']))
]);
}
}