Renamte LastFm.Feed.all/0 to LastFm.Feed.all_tracks/0

This commit is contained in:
Claudio Ortolina
2024-12-10 14:57:06 +03:00
parent f48372f7b3
commit a6e1e4e34a
3 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -23,8 +23,8 @@ defmodule LastFm.Feed do
Phoenix.PubSub.broadcast(LastFm.PubSub, "feed:update", %{tracks: tracks})
end
@spec all() :: [LastFm.Track.t()]
def all do
@spec all_tracks() :: [LastFm.Track.t()]
def all_tracks do
m = [
{
{:_, :_},
@@ -18,7 +18,7 @@ defmodule MusicLibraryWeb.StatsLive.Index do
latest_record = Collection.get_latest_record!()
recent_tracks = LastFm.Feed.all()
recent_tracks = LastFm.Feed.all_tracks()
release_ids = release_ids(recent_tracks)
+1 -1
View File
@@ -44,7 +44,7 @@ defmodule LastFm.FeedTest do
test "it returns tracks in descending order of scrobble" do
:ok = Feed.update([@track_two, @track_one])
assert [@track_two, @track_one] == Feed.all()
assert [@track_two, @track_one] == Feed.all_tracks()
end
end
end