Skip to content

Commit

Permalink
format fix
Browse files Browse the repository at this point in the history
  • Loading branch information
electronicbites committed Nov 23, 2024
1 parent 5e0cafb commit 8830e4b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/radiator/outline.ex
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,7 @@ defmodule Radiator.Outline do
def split_node(_node_id, {start, stop}) when start > stop do
{:error, :invalid_range}
end

def split_node(node_id, {start, stop}) do
# missing transaction!!
case NodeRepository.get_node(node_id) do
Expand Down
1 change: 1 addition & 0 deletions lib/radiator/outline/command_processor.ex
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ defmodule Radiator.Outline.CommandProcessor do
{:ok, %NodeRepoResult{node: next, next: old_next, episode_id: episode_id}},
command
)

# for the second event, we need to generate a new event_id
command = Map.put(command, :event_id, Ecto.UUID.generate())
handle_change_node_content_result({:ok, node}, command)
Expand Down

0 comments on commit 8830e4b

Please sign in to comment.