mirror of
https://github.com/nextcloud/server.git
synced 2026-02-20 00:12:30 -05:00
Correct method title. Add docblock
This commit is contained in:
parent
1f7ac2c309
commit
e3c067c2e1
2 changed files with 6 additions and 2 deletions
|
|
@ -74,7 +74,7 @@ class ExpireVersions extends \OC\BackgroundJob\TimedJob {
|
|||
}
|
||||
$isFSready = true;
|
||||
}
|
||||
Storage::expireOlderThan($uid);
|
||||
Storage::expireOlderThanMaxForUser($uid);
|
||||
}
|
||||
|
||||
\OC_Util::tearDownFS();
|
||||
|
|
|
|||
|
|
@ -403,7 +403,11 @@ class Storage {
|
|||
return $versions;
|
||||
}
|
||||
|
||||
public static function expireOlderThan($uid){
|
||||
/**
|
||||
* Expire versions that older than max version retention time
|
||||
* @param string $uid
|
||||
*/
|
||||
public static function expireOlderThanMaxForUser($uid){
|
||||
$expiration = self::getExpiration();
|
||||
$threshold = $expiration->getMaxAgeAsTimestamp();
|
||||
$versions = self::getAllVersions($uid);
|
||||
|
|
|
|||
Loading…
Reference in a new issue