aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/lib/DeleteOrphanedSharesJob.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_sharing/lib/DeleteOrphanedSharesJob.php')
-rw-r--r--apps/files_sharing/lib/DeleteOrphanedSharesJob.php13
1 files changed, 3 insertions, 10 deletions
diff --git a/apps/files_sharing/lib/DeleteOrphanedSharesJob.php b/apps/files_sharing/lib/DeleteOrphanedSharesJob.php
index 4ab95c2587b..63f057e3bf4 100644
--- a/apps/files_sharing/lib/DeleteOrphanedSharesJob.php
+++ b/apps/files_sharing/lib/DeleteOrphanedSharesJob.php
@@ -26,27 +26,20 @@ class DeleteOrphanedSharesJob extends TimedJob {
private const CHUNK_SIZE = 1000;
- private const INTERVAL = 24 * 60 * 60; // 1 day
-
- private IDBConnection $db;
-
- private LoggerInterface $logger;
+ private const INTERVAL = 24 * 60 * 60;
/**
* sets the correct interval for this timed job
*/
public function __construct(
ITimeFactory $time,
- IDBConnection $db,
- LoggerInterface $logger,
+ private IDBConnection $db,
+ private LoggerInterface $logger,
) {
parent::__construct($time);
- $this->db = $db;
-
$this->setInterval(self::INTERVAL); // 1 day
$this->setTimeSensitivity(self::TIME_INSENSITIVE);
- $this->logger = $logger;
}
/**