Sfoglia il codice sorgente

Update media:optimize command

Daniel Supernault 5 anni fa
parent
commit
9524ea19f5
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  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', [