Show included release groups in record show page

This commit is contained in:
Claudio Ortolina
2024-11-14 19:11:41 +00:00
parent edd1339287
commit d7fd14c7ab
3 changed files with 27 additions and 4 deletions
+3
View File
@@ -61,6 +61,9 @@ defmodule MusicLibrary.Records.Record do
relation["type"] == "included in" and
relation["direction"] == "backward"
end)
|> Enum.map(fn relation ->
MusicBrainz.ReleaseGroup.from_api_response(relation["release_group"])
end)
end
def child_release_groups_count(record) do