Skip to content

Commit

Permalink
fix: only cleanup orphaned shared daly
Browse files Browse the repository at this point in the history
Signed-off-by: Robin Appelman <robin@icewind.nl>

[skip ci]
  • Loading branch information
icewind1991 authored and backportbot[bot] committed Feb 26, 2024
1 parent 269bd24 commit 432d5ae
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/files_sharing/lib/DeleteOrphanedSharesJob.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ class DeleteOrphanedSharesJob extends TimedJob {
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);
}

/**
Expand Down

0 comments on commit 432d5ae

Please sign in to comment.