run send reminders background-job only when mode is not set to occ
Signed-off-by: Georg Ehrke <developer@georgehrke.com>
This commit is contained in:
parent
d74315ac3d
commit
36b9b51297
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue