Skip to content
Snippets Groups Projects
Commit e3c067c2 authored by Victor Dubiniuk's avatar Victor Dubiniuk
Browse files

Correct method title. Add docblock

parent 1f7ac2c3
No related branches found
No related tags found
No related merge requests found
...@@ -74,7 +74,7 @@ class ExpireVersions extends \OC\BackgroundJob\TimedJob { ...@@ -74,7 +74,7 @@ class ExpireVersions extends \OC\BackgroundJob\TimedJob {
} }
$isFSready = true; $isFSready = true;
} }
Storage::expireOlderThan($uid); Storage::expireOlderThanMaxForUser($uid);
} }
\OC_Util::tearDownFS(); \OC_Util::tearDownFS();
......
...@@ -403,7 +403,11 @@ class Storage { ...@@ -403,7 +403,11 @@ class Storage {
return $versions; 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(); $expiration = self::getExpiration();
$threshold = $expiration->getMaxAgeAsTimestamp(); $threshold = $expiration->getMaxAgeAsTimestamp();
$versions = self::getAllVersions($uid); $versions = self::getAllVersions($uid);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment