summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorGeorg Ehrke <developer@georgehrke.com>2019-08-02 16:26:51 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2019-08-15 20:02:56 +0200
commit36b9b51297165afcb9071d72f83cf431b01b4edd (patch)
tree543b496d0d43994c8be61f1cb288724635a11c07 /apps
parentd74315ac3d31d7ec30fa7fa13ef87c34bd4f6181 (diff)
downloadnextcloud-server-36b9b51297165afcb9071d72f83cf431b01b4edd.tar.gz
nextcloud-server-36b9b51297165afcb9071d72f83cf431b01b4edd.zip
run send reminders background-job only when mode is not set to occ
Signed-off-by: Georg Ehrke <developer@georgehrke.com>
Diffstat (limited to 'apps')
-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();
}
}