Skip to content

Commit

Permalink
adapt seeds after connecting nodes to episodes
Browse files Browse the repository at this point in the history
  • Loading branch information
electronicbites committed Jan 9, 2024
1 parent 72a2696 commit be065d9
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions priv/repo/seeds.exs
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,6 @@ alias Radiator.{Accounts, Outline, Podcast}
{:ok, _user_jim} =
Accounts.register_user(%{email: "[email protected]", password: "supersupersecret"})

{:ok, _node} =
Outline.create_node(%{content: "This is my first node"})

{:ok, _node} =
Outline.create_node(%{content: "Second node"})

{:ok, network} =
Podcast.create_network(%{title: "Podcast network"})

Expand All @@ -28,5 +22,11 @@ alias Radiator.{Accounts, Outline, Podcast}
{:ok, _episode} =
Podcast.create_episode(%{title: "past episode", show_id: show.id})

{:ok, _episode} =
{:ok, current_episode} =
Podcast.create_episode(%{title: "current episode", show_id: show.id})

{:ok, _node} =
Outline.create_node(%{content: "This is my first node", episode_id: current_episode.id})

{:ok, _node} =
Outline.create_node(%{content: "Second node", episode_id: current_episode.id})

0 comments on commit be065d9

Please sign in to comment.