mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 16:26:59 -04:00
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
1 changed files with 9 additions and 4 deletions
|
|
@ -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 a new issue