Allow manual upload of artist image

This commit is contained in:
Claudio Ortolina
2025-07-06 16:57:30 +01:00
parent 97950e3ad5
commit f57485e509
7 changed files with 254 additions and 1 deletions
+10
View File
@@ -151,6 +151,16 @@ defmodule MusicLibrary.Artists do
Repo.one(q)
end
def change_artist_info(artist_info, attrs \\ %{}) do
ArtistInfo.changeset(artist_info, attrs)
end
def update_artist_info(artist_info, attrs) do
artist_info
|> ArtistInfo.changeset(attrs)
|> Repo.update()
end
defp get_collected_artist_ids do
q =
from ar in ArtistRecord,