Explicitly set auto-refresh config for LastFm refresh
This commit is contained in:
+1
-1
@@ -25,9 +25,9 @@ config :music_library, MusicLibraryWeb.Endpoint,
|
||||
live_view: [signing_salt: "g/qw4SNo"]
|
||||
|
||||
config :music_library, LastFm,
|
||||
# to avoid runtime errors, set the user to a valid Last.fm username
|
||||
user: "username",
|
||||
api: LastFm.APIImpl,
|
||||
auto_refresh: true,
|
||||
refresh_interval: System.convert_time_unit(60, :second, :millisecond),
|
||||
api_key: "change me"
|
||||
|
||||
|
||||
+1
-1
@@ -30,4 +30,4 @@ config :phoenix_live_view,
|
||||
|
||||
config :music_library, dev_routes: true
|
||||
|
||||
config :music_library, LastFm, api: nil
|
||||
config :music_library, LastFm, auto_refresh: false
|
||||
|
||||
Reference in New Issue
Block a user