Skip to content

Commit

Permalink
fixup 43 failures
Browse files Browse the repository at this point in the history
  • Loading branch information
electronicbites committed Dec 22, 2024
1 parent 902b189 commit f9ebdd6
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 8 deletions.
3 changes: 1 addition & 2 deletions lib/radiator/outline.ex
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,10 @@ defmodule Radiator.Outline do
# if a previous node is given, the new node will be inserted after the previous node
# if no parent is given, the new node will be inserted as a root node
# if no previous node is given, the new node will be inserted as the first child of the parent node
def insert_node(%{"show_id" => _show_id} = attrs) do
def insert_node(%{"outline_node_container_id" => outline_node_container_id} = attrs) do
Repo.transaction(fn ->
prev_id = attrs["prev_id"]
parent_id = attrs["parent_id"]
outline_node_container_id = attrs["outline_node_container_id"]

prev_node = NodeRepository.get_node_if(prev_id)
parent_node = find_parent_node(prev_node, parent_id)
Expand Down
1 change: 0 additions & 1 deletion lib/radiator/outline/node.ex
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ defmodule Radiator.Outline.Node do
:creator_id,
:parent_id,
:prev_id,
:show_id,
:outline_node_container_id
])
|> put_uuid()
Expand Down
3 changes: 0 additions & 3 deletions test/radiator/outline/node_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ defmodule Radiator.Outline.NodeTest do

attributes = %{
"uuid" => uuid,
"show_id" => episode.show_id,
"outline_node_container_id" => episode.outline_node_container_id,
"content" => "Node Content"
}
Expand All @@ -47,7 +46,6 @@ defmodule Radiator.Outline.NodeTest do

attributes = %{
"episode_id" => episode.id,
"show_id" => episode.show_id,
"outline_node_container_id" => episode.outline_node_container_id,
"content" => "Node Content"
}
Expand All @@ -62,7 +60,6 @@ defmodule Radiator.Outline.NodeTest do
attributes = %{
"uuid" => "not-a-uuid",
"episode_id" => episode.id,
"show_id" => episode.show_id,
"outline_node_container_id" => episode.outline_node_container_id,
"content" => "Node Content"
}
Expand Down
2 changes: 0 additions & 2 deletions test/support/fixtures/outline_fixtures.ex
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ defmodule Radiator.OutlineFixtures do
attrs
|> Enum.into(%{
content: "some content",
episode_id: episode.id,
show_id: episode.show_id,
outline_node_container_id: episode.outline_node_container_id
})
|> NodeRepository.create_node()
Expand Down

0 comments on commit f9ebdd6

Please sign in to comment.