forked from mirror/pixelfed
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()
|
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) {
|
foreach ($medias as $media) {
|
||||||
ImageOptimize::dispatch($media);
|
ImageOptimize::dispatch($media);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue