Correct method title. Add docblock

remotes/origin/db-empty-migrate
Victor Dubiniuk 10 years ago
parent 1f7ac2c309
commit e3c067c2e1
  1. 2
      apps/files_versions/lib/backgroundjob/expireversions.php
  2. 6
      apps/files_versions/lib/storage.php

@ -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…
Cancel
Save