Browse Source

Update media:optimize command

Daniel Supernault 5 năm trước cách đây
mục cha
commit
9524ea19f5
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  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', [