Skip to content

Commit

Permalink
re-enable "|> Repo.preload(:groups)" in get_person_by_id/1 #220
Browse files Browse the repository at this point in the history
  • Loading branch information
nelsonic committed Dec 7, 2022
1 parent 307c39d commit e3e9fd8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion lib/auth/person.ex
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ defmodule Auth.Person do
|> Repo.get_by(id: id)
|> Repo.preload(:roles)
|> Repo.preload(:statuses)
# |> Repo.preload(:groups)
|> Repo.preload(:groups)
end

defp put_pass_hash(changeset) do
Expand Down
1 change: 0 additions & 1 deletion test/auth/group_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ defmodule Auth.GroupTest do
assert inserted_group.name == group.name
end

@tag :skip
test "Auth.Group.list_groups_for_person/1 gets groups a person belongs to" do
group = %{
desc: "Group 1 desc",
Expand Down

0 comments on commit e3e9fd8

Please sign in to comment.