7cf9b4e7f8
- spec public functions (skipping controllers, views, live views and components) - use types instead of explanations in docs - remove redundant docs - fix typos
9 lines
224 B
Elixir
9 lines
224 B
Elixir
defmodule LastFm.Import do
|
|
@spec batch(keyword()) :: {:ok, non_neg_integer()} | {:error, term()}
|
|
def batch(opts) do
|
|
with {:ok, tracks} <- LastFm.get_tracks(opts) do
|
|
LastFm.Feed.update(tracks)
|
|
end
|
|
end
|
|
end
|