Return 404 for artist image requests without image data

This commit is contained in:
Claudio Ortolina
2025-04-29 18:52:38 +01:00
parent 4a70e02f14
commit 1c3efb262b
+1 -1
View File
@@ -126,7 +126,7 @@ defmodule MusicLibrary.Artists do
def get_image(artist_id) do
q =
from ai in ArtistInfo,
where: ai.id == ^artist_id,
where: ai.id == ^artist_id and not is_nil(ai.image_data),
select: %{
image_data: ai.image_data,
image_data_width: ai.image_data_width,