artist urls: stop using normalized_url.

Stop the last remaining uses of the `artist_urls.normalized_url` column.
It's already no longer used by the artist finder. The only remaining
uses were by API users. Those users should use the `url` column instead.
This commit is contained in:
evazion
2022-04-02 23:27:07 -05:00
parent 86e9cf1d05
commit 0d480eb832
6 changed files with 11 additions and 64 deletions

View File

@@ -218,7 +218,7 @@ module ArtistFinder
def find_artists(url)
return Artist.none if url.blank?
url = ArtistURL.normalize_normalized_url(url)
url = ArtistURL.normalize_url(url)
# First try an exact match
artists = Artist.active.joins(:urls).where(urls: { url: url })