Skip to content

Commit

Permalink
add content to handle info call
Browse files Browse the repository at this point in the history
  • Loading branch information
electronicbites committed May 14, 2024
1 parent f79a151 commit ffc5d89
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/radiator_web/live/episode_live/index.ex
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,12 @@ defmodule RadiatorWeb.EpisodeLive.Index do
|> reply(:noreply)
end

def handle_info(%NodeContentChangedEvent{node_id: node_id, event_id: event_id}, socket) do
def handle_info(
%NodeContentChangedEvent{node_id: id, content: content},
socket
) do
socket
|> push_event("update", %{node_id: node_id, event_id: event_id})
|> push_event("update", %{node: %{id: id, content: content}})
|> reply(:noreply)
end

Expand Down

0 comments on commit ffc5d89

Please sign in to comment.