summaryrefslogtreecommitdiffstats
path: root/apps/dav
diff options
context:
space:
mode:
Diffstat (limited to 'apps/dav')
-rw-r--r--apps/dav/lib/BackgroundJob/EventReminderJob.php13
1 files changed, 9 insertions, 4 deletions
diff --git a/apps/dav/lib/BackgroundJob/EventReminderJob.php b/apps/dav/lib/BackgroundJob/EventReminderJob.php
index e0a147e4203..dfa76ffe168 100644
--- a/apps/dav/lib/BackgroundJob/EventReminderJob.php
+++ b/apps/dav/lib/BackgroundJob/EventReminderJob.php
@@ -50,10 +50,15 @@ class EventReminderJob extends TimedJob {
* @throws \OCA\DAV\CalDAV\Reminder\NotificationTypeDoesNotExistException
* @throws \OC\User\NoUserException
*/
- public function run($arg): void
- {
- if ($this->config->getAppValue('dav', 'sendEventReminders', 'yes') === 'yes') {
- $this->reminderService->processReminders();
+ public function run($arg):void {
+ if ($this->config->getAppValue('dav', 'sendEventReminders', 'yes') !== 'yes') {
+ return;
}
+
+ if ($this->config->getAppValue('dav', 'sendEventRemindersMode', 'backgroundjob') !== 'backgroundjob') {
+ return;
+ }
+
+ $this->reminderService->processReminders();
}
}