Skip to content

Commit

Permalink
fixup 3
Browse files Browse the repository at this point in the history
  • Loading branch information
electronicbites committed Jul 2, 2024
1 parent 2d683bf commit f18f566
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/radiator/outline/event_consumer.ex
Original file line number Diff line number Diff line change
Expand Up @@ -99,13 +99,14 @@ defmodule Radiator.Outline.EventConsumer do
:error
end

def handle_move_node_result({:ok, node}, %MoveNodeCommand{} = command) do
def handle_move_node_result({:ok, %NodeRepoResult{node: node} = result}, %MoveNodeCommand{} = command) do
%NodeMovedEvent{
node_id: node.uuid,
parent_id: command.parent_id,
prev_id: command.prev_id,
user_id: command.user_id,
event_id: command.event_id
event_id: command.event_id,
next_id: result.next_id
}
|> EventStore.persist_event()
|> Dispatch.broadcast()
Expand Down

0 comments on commit f18f566

Please sign in to comment.