mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-25 15:55:22 +00:00
Update Media optimize command
This commit is contained in:
parent
f69598eb1b
commit
a032a31f3b
1 changed files with 1 additions and 1 deletions
|
@ -39,7 +39,7 @@ class CatchUnoptimizedMedia extends Command
|
|||
*/
|
||||
public function handle()
|
||||
{
|
||||
$medias = Media::whereNull('processed_at')->take(50)->get();
|
||||
$medias = Media::whereNotNull('status_id')->whereNull('processed_at')->take(250)->get();
|
||||
foreach ($medias as $media) {
|
||||
ImageOptimize::dispatch($media);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue