Remove reminder if max instances exceeded

Signed-off-by: Akhil <akhil@e.email>
pull/36845/head
Akhil 2023-02-27 15:56:24 +07:00
parent e354e9266e
commit e823718383
No known key found for this signature in database
GPG Key ID: A8AB680DBB7F3D45
1 changed files with 1 additions and 0 deletions

@ -151,6 +151,7 @@ class ReminderService {
$vevent = $this->getVEventByRecurrenceId($vcalendar, $reminder['recurrence_id'], $reminder['is_recurrence_exception']);
} catch (MaxInstancesExceededException $e) {
$this->logger->debug('Recurrence with too many instances detected, skipping VEVENT', ['exception' => $e]);
$this->backend->removeReminder($reminder['id']);
continue;
}