kopia lustrzana https://github.com/pixelfed/pixelfed
Update MediaS3GarbageCollector, fix handle
rodzic
102e71310d
commit
2eee36cfbd
|
@ -66,7 +66,13 @@ class MediaS3GarbageCollector extends Command
|
|||
return;
|
||||
}
|
||||
|
||||
$minId = Media::orderByDesc('id')->where('created_at', '<', now()->subHours(12))->first()->id;
|
||||
$minId = Media::orderByDesc('id')->where('created_at', '<', now()->subHours(12))->first();
|
||||
|
||||
if(!$minId) {
|
||||
return;
|
||||
} else {
|
||||
$minId = $minId->id;
|
||||
}
|
||||
|
||||
return $hugeMode ?
|
||||
$this->hugeMode($minId, $limit, $log) :
|
||||
|
|
Ładowanie…
Reference in New Issue