Update Media optimize command

This commit is contained in:
Daniel Supernault 2018-10-20 21:49:46 -06:00
parent f69598eb1b
commit a032a31f3b
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -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);
}