Standardize fetch_* to refresh_* in Artists context

Closes #132
This commit is contained in:
Claudio Ortolina
2026-03-25 11:52:43 +00:00
parent e4eccf4606
commit 0ccaf46ebd
8 changed files with 27 additions and 32 deletions
+1 -1
View File
@@ -33,7 +33,7 @@ defmodule MusicLibrary.Artists.Batch do
@spec refresh_lastfm_data() :: {:ok, [String.t()]}
def refresh_lastfm_data do
Batch.run_on_all(from(r in ArtistInfo), "artist_info", fn artist_info ->
Artists.fetch_lastfm_data_async(artist_info.id)
Artists.refresh_lastfm_data_async(artist_info.id)
end)
end
end