Skip to content

Commit

Permalink
Fix Missing morphName in database state (#1990)
Browse files Browse the repository at this point in the history
  • Loading branch information
lguichard authored Oct 21, 2024
1 parent 694014e commit 19858f3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ protected function shouldRun()
protected function getOutdatedMediaQuery()
{
return DB::table(app(config('media-library.media_model'))->getTable())
->whereIn('model_type', [Product::class, Collection::class, Brand::class])
->whereIn('model_type', [Product::morphName(), Collection::morphName(), Brand::morphName()])
->where('collection_name', 'products');
}
}

0 comments on commit 19858f3

Please sign in to comment.