diff options
author | Salvatore Martire <4652631+salmart-dev@users.noreply.github.com> | 2025-06-06 16:29:06 +0200 |
---|---|---|
committer | Salvatore Martire <4652631+salmart-dev@users.noreply.github.com> | 2025-06-20 18:35:48 +0200 |
commit | dc041c530c25b32d3a54968380ca2fbccec809c2 (patch) | |
tree | dbbe1203566b05b31675d3f59d434a7885889ef4 | |
parent | 4bdb2b1dff11d433ee40bdaad5798a70e8483971 (diff) | |
download | nextcloud-server-fix/convert-schedulednotifications-to-timedjob.tar.gz nextcloud-server-fix/convert-schedulednotifications-to-timedjob.zip |
fix: make ScheduledNotifications a TimedJob and...fix/convert-schedulednotifications-to-timedjob
run every 1s.
Signed-off-by: Salvatore Martire <4652631+salmart-dev@users.noreply.github.com>
-rw-r--r-- | apps/files_reminders/lib/BackgroundJob/ScheduledNotifications.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/files_reminders/lib/BackgroundJob/ScheduledNotifications.php b/apps/files_reminders/lib/BackgroundJob/ScheduledNotifications.php index d8467d1740c..ab8c762d674 100644 --- a/apps/files_reminders/lib/BackgroundJob/ScheduledNotifications.php +++ b/apps/files_reminders/lib/BackgroundJob/ScheduledNotifications.php @@ -13,10 +13,10 @@ use OCA\FilesReminders\Db\ReminderMapper; use OCA\FilesReminders\Service\ReminderService; use OCP\AppFramework\Db\DoesNotExistException; use OCP\AppFramework\Utility\ITimeFactory; -use OCP\BackgroundJob\Job; +use OCP\BackgroundJob\TimedJob; use Psr\Log\LoggerInterface; -class ScheduledNotifications extends Job { +class ScheduledNotifications extends TimedJob { public function __construct( ITimeFactory $time, protected ReminderMapper $reminderMapper, @@ -24,6 +24,8 @@ class ScheduledNotifications extends Job { protected LoggerInterface $logger, ) { parent::__construct($time); + + $this->setInterval(60); } /** |