We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8b80065 + dc041c5 commit 57a375cCopy full SHA for 57a375c
apps/files_reminders/lib/BackgroundJob/ScheduledNotifications.php
@@ -13,17 +13,19 @@
13
use OCA\FilesReminders\Service\ReminderService;
14
use OCP\AppFramework\Db\DoesNotExistException;
15
use OCP\AppFramework\Utility\ITimeFactory;
16
-use OCP\BackgroundJob\Job;
+use OCP\BackgroundJob\TimedJob;
17
use Psr\Log\LoggerInterface;
18
19
-class ScheduledNotifications extends Job {
+class ScheduledNotifications extends TimedJob {
20
public function __construct(
21
ITimeFactory $time,
22
protected ReminderMapper $reminderMapper,
23
protected ReminderService $reminderService,
24
protected LoggerInterface $logger,
25
) {
26
parent::__construct($time);
27
+
28
+ $this->setInterval(60);
29
}
30
31
/**
0 commit comments