Fixed issue Crons running for tenants

This commit is contained in:
2026-05-23 19:27:20 +02:00
parent ef8f3ebe6c
commit 998a799c3a
3 changed files with 12 additions and 7 deletions
+1
View File
@@ -12,6 +12,7 @@ class CloseEvent implements CronTask {
$eventRepository = new EventRepository();
/** @var Event $event */
foreach ($eventRepository->getAvailable(false) as $event) {
echo $event->id . $event->tenant .'<br>';
if ($event->registration_final_end <= $now ) {
$event->registration_allowed = false;
$event->save();