Skip to content

Commit

Permalink
credo
Browse files Browse the repository at this point in the history
  • Loading branch information
leftstanding committed Sep 30, 2023
1 parent 7cfda3b commit af0cf5f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/ecto_diff.ex
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,9 @@ defmodule EctoDiff do
through_association = owner.__schema__(:association, through).related
association = through_association.__schema__(:association, assoc_field)

diff_association(previous, current, association, acc, opts)
diff = diff_association(previous, current, association, acc, opts)

diff
|> Keyword.get_values(assoc_field)
|> List.flatten()
end
Expand Down

0 comments on commit af0cf5f

Please sign in to comment.