diff --git a/lib/radiator/outline/command.ex b/lib/radiator/outline/command.ex index 3fa4ec1f..b7b79404 100644 --- a/lib/radiator/outline/command.ex +++ b/lib/radiator/outline/command.ex @@ -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