diff --git a/lib/live_beats/media_library.ex b/lib/live_beats/media_library.ex index cc3458d..f4e81e9 100644 --- a/lib/live_beats/media_library.ex +++ b/lib/live_beats/media_library.ex @@ -17,7 +17,7 @@ defmodule LiveBeats.MediaLibrary do defdelegate paused?(song), to: Song def attach do - LiveBeats.attach(LiveBeats.MediaLibrary, to: {Accounts, Accounts.Events.PublicSettingsChanged}) + LiveBeats.attach(__MODULE__, to: {Accounts, Accounts.Events.PublicSettingsChanged}) end def handle_execute({Accounts, %Accounts.Events.PublicSettingsChanged{user: user}}) do