Parcourir la source

Update media:optimize command

Daniel Supernault il y a 6 ans
Parent
commit
9524ea19f5
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  1. 1 0
      app/Console/Commands/CatchUnoptimizedMedia.php

+ 1 - 0
app/Console/Commands/CatchUnoptimizedMedia.php

@@ -42,6 +42,7 @@ class CatchUnoptimizedMedia extends Command
     {
         DB::transaction(function() {
             Media::whereNull('processed_at')
+                ->whereNull('remote_url')
                 ->whereNotNull('status_id')
                 ->whereNotNull('media_path')
                 ->whereIn('mime', [