Update media:optimize command

This commit is contained in:
Daniel Supernault 2019-08-20 22:22:25 -06:00
parent bd05f63dec
commit 9524ea19f5
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

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