Generate better dominant colors async after record import

This commit is contained in:
Claudio Ortolina
2025-06-08 07:50:07 +01:00
parent 569f8b5340
commit 2bbb91769d
+2
View File
@@ -329,6 +329,8 @@ defmodule MusicLibrary.Records do
def create_record(attrs \\ %{}) do
with {:ok, record} <- do_create_record(attrs) do
generate_dominant_colors_async(record)
record
|> Record.artist_ids()
|> Enum.each(fn artist_id ->