Skip to content

Commit

Permalink
foixup add commands and events for intend node actions
Browse files Browse the repository at this point in the history
  • Loading branch information
electronicbites committed Sep 9, 2024
1 parent 83b6521 commit 74c185c
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions lib/radiator/outline/command.ex
Original file line number Diff line number Diff line change
Expand Up @@ -25,20 +25,20 @@ defmodule Radiator.Outline.Command do
}
end

def build("change_node_content", node_id, content, user_id, event_id) do
%ChangeNodeContentCommand{
def build("intend_node", node_id, user_id, event_id) do
%IntendNodeCommand{
event_id: event_id,
user_id: user_id,
node_id: node_id,
content: content
node_id: node_id
}
end

def build("intend_node", node_id, user_id, event_id) do
%IntendNodeCommand{
def build("change_node_content", node_id, content, user_id, event_id) do
%ChangeNodeContentCommand{
event_id: event_id,
user_id: user_id,
node_id: node_id
node_id: node_id,
content: content
}
end

Expand Down

0 comments on commit 74c185c

Please sign in to comment.