diff --git a/lib/chore_tracker/chores.ex b/lib/chore_tracker/chores.ex index 6a26587..3bacb2e 100644 --- a/lib/chore_tracker/chores.ex +++ b/lib/chore_tracker/chores.ex @@ -27,7 +27,7 @@ defmodule ChoreTracker.Chores do def update_chore(%Chore{} = chore, attrs) do Ecto.Multi.new() |> Ecto.Multi.update(:chore, change_chore(chore, attrs)) - |> Ecto.Multi.run(:update_next_assignee, fn _repo, _changeset -> + |> Ecto.Multi.run(:update_next_assignee, fn _repo, %{chore: chore} -> save_next_chore_assignee(chore) end) |> Repo.transaction() diff --git a/lib/chore_tracker_web/components/layouts/root.html.heex b/lib/chore_tracker_web/components/layouts/root.html.heex index 4552ce7..bd4c870 100644 --- a/lib/chore_tracker_web/components/layouts/root.html.heex +++ b/lib/chore_tracker_web/components/layouts/root.html.heex @@ -1,5 +1,5 @@ - +