When creating a record, queue a job to fetch artist info

This commit is contained in:
Claudio Ortolina
2025-04-29 16:56:22 +01:00
parent f98e29263f
commit fa49e73385
5 changed files with 29 additions and 3 deletions
+4
View File
@@ -34,6 +34,10 @@ defmodule MusicLibrary.Records.Record do
Enum.map_join(record.artists, ", ", fn artist -> artist.name end)
end
def artist_ids(record) do
Enum.map(record.artists, fn artist -> artist.musicbrainz_id end)
end
def formats, do: @formats
def types, do: @types