diff --git a/app/Console/Commands/CatchUnoptimizedMedia.php b/app/Console/Commands/CatchUnoptimizedMedia.php index 0ca48b85..22ae56be 100644 --- a/app/Console/Commands/CatchUnoptimizedMedia.php +++ b/app/Console/Commands/CatchUnoptimizedMedia.php @@ -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); }