Explicitly set auto-refresh config for LastFm refresh

This commit is contained in:
Claudio Ortolina
2024-12-03 19:58:17 +00:00
parent f58a5e83b7
commit 61cda5a62c
4 changed files with 5 additions and 8 deletions
+1 -1
View File
@@ -20,7 +20,7 @@ defmodule LastFm.Refresh do
@impl true
@spec init(config) :: {:ok, config, {:continue, :refresh}} | :ignore
def init(config) do
if Config.enabled?(config) do
if config.auto_refresh do
{:ok, config, {:continue, :refresh}}
else
:ignore