From a032a31f3be157846467e28cb10e02d3344eedfc Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Sat, 20 Oct 2018 21:49:46 -0600 Subject: [PATCH] Update Media optimize command --- app/Console/Commands/CatchUnoptimizedMedia.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }