diff options
author | John Molakvoæ <skjnldsv@users.noreply.github.com> | 2024-02-23 19:43:07 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-23 19:43:07 +0100 |
commit | d541a7d1788b8b9ce5b8b357d5a8a4b25348702e (patch) | |
tree | 7f968a2b42cf0ab2b79d4fa9acf4f4aec5595f62 /apps | |
parent | db9fd9439e927535a16c59cf3aa235e9d00c00a8 (diff) | |
parent | 0b8f0d0a0bc282a02c7e88271a848cb1f8063729 (diff) | |
download | nextcloud-server-d541a7d1788b8b9ce5b8b357d5a8a4b25348702e.tar.gz nextcloud-server-d541a7d1788b8b9ce5b8b357d5a8a4b25348702e.zip |
Merge pull request #43605 from nextcloud/orphan-share-daily
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files_sharing/lib/DeleteOrphanedSharesJob.php | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/apps/files_sharing/lib/DeleteOrphanedSharesJob.php b/apps/files_sharing/lib/DeleteOrphanedSharesJob.php index 2d166da2010..6883bfd4762 100644 --- a/apps/files_sharing/lib/DeleteOrphanedSharesJob.php +++ b/apps/files_sharing/lib/DeleteOrphanedSharesJob.php @@ -35,17 +35,13 @@ use Psr\Log\LoggerInterface; */ class DeleteOrphanedSharesJob extends TimedJob { /** - * Default interval in minutes - **/ - protected int $defaultIntervalMin = 15; - - /** * sets the correct interval for this timed job */ public function __construct(ITimeFactory $time) { parent::__construct($time); - $this->interval = $this->defaultIntervalMin * 60; + $this->setInterval(24 * 60 * 60); // 1 day + $this->setTimeSensitivity(self::TIME_INSENSITIVE); } /** |