Skip to content

Commit

Permalink
fixup seeds
Browse files Browse the repository at this point in the history
  • Loading branch information
electronicbites committed Dec 16, 2023
1 parent b7699cf commit 62dde9e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions priv/repo/seeds.exs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# mix run priv/repo/seeds.exs
#
alias Radiator.{Accounts, Outline, Podcasts}
alias Radiator.{Accounts, Outline, Podcast}

{:ok, _user_bob} =
Accounts.register_user(%{email: "[email protected]", password: "supersupersecret"})
Expand All @@ -13,11 +13,11 @@ alias Radiator.{Accounts, Outline, Podcasts}
{:ok, _node} =
Outline.create_node(%{content: "This is a node"})

{:ok, station} =
Podcasts.create_station(%{title: "Podcast networ"})
{:ok, network} =
Podcast.create_network(%{title: "Podcast network"})

{:ok, podcast} =
Podcasts.create_podcast(%{title: "Tech Weekly", station: station})
{:ok, show} =
Podcast.create_show(%{title: "Tech Weekly", network_id: network.id})

{:ok, _episode} =
Podcasts.create_episode(%{title: "42", podcast: podcast})
Podcast.create_episode(%{title: "42", show_id: show.id})

0 comments on commit 62dde9e

Please sign in to comment.