From f9ebdd6950c9ad1e5242d84c83d9bf6de9896f8b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20W=C3=B6ginger?= Date: Sun, 22 Dec 2024 19:06:58 +0100 Subject: [PATCH] fixup 43 failures --- lib/radiator/outline.ex | 3 +-- lib/radiator/outline/node.ex | 1 - test/radiator/outline/node_test.exs | 3 --- test/support/fixtures/outline_fixtures.ex | 2 -- 4 files changed, 1 insertion(+), 8 deletions(-) diff --git a/lib/radiator/outline.ex b/lib/radiator/outline.ex index 1a64b27a..857a30dc 100644 --- a/lib/radiator/outline.ex +++ b/lib/radiator/outline.ex @@ -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) diff --git a/lib/radiator/outline/node.ex b/lib/radiator/outline/node.ex index bcd54e2d..925bbd24 100644 --- a/lib/radiator/outline/node.ex +++ b/lib/radiator/outline/node.ex @@ -40,7 +40,6 @@ defmodule Radiator.Outline.Node do :creator_id, :parent_id, :prev_id, - :show_id, :outline_node_container_id ]) |> put_uuid() diff --git a/test/radiator/outline/node_test.exs b/test/radiator/outline/node_test.exs index d59530ef..1bf72aff 100644 --- a/test/radiator/outline/node_test.exs +++ b/test/radiator/outline/node_test.exs @@ -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" } @@ -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" } @@ -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" } diff --git a/test/support/fixtures/outline_fixtures.ex b/test/support/fixtures/outline_fixtures.ex index 9d8509eb..79e88067 100644 --- a/test/support/fixtures/outline_fixtures.ex +++ b/test/support/fixtures/outline_fixtures.ex @@ -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()