Explorar o código

Update media:optimize command

Daniel Supernault %!s(int64=5) %!d(string=hai) anos
pai
achega
9524ea19f5
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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', [