Fixed cronjobs
This commit is contained in:
1 parent
30cc0b79c5
commit
454d83de2e
4 files changed
+34
-18
No files matched your search
@@ -12,7 +12,7 @@ class CloseEvent implements CronTask {
|
||||
$eventRepository = new EventRepository();
|
||||
/** @var Event $event */
|
||||
foreach ($eventRepository->getAvailable(false) as $event) {
|
||||
if ($event->registration_final_end < $now ) {
|
||||
if ($event->registration_final_end <= $now ) {
|
||||
$event->registration_allowed = false;
|
||||
$event->save();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user