Skip to content

Commit

Permalink
Fix: Missing morphName in database state
Browse files Browse the repository at this point in the history
  • Loading branch information
lguichard committed Oct 17, 2024
1 parent 3d66fb2 commit 2cda43a
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 2cda43a

Please sign in to comment.