Skip to content

Commit 6c7310b

Browse files
committed
Small fixes
1 parent 254702a commit 6c7310b

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

lib/ecto_sync/schemas.ex

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ defmodule EctoSync.Schemas do
4545
case assoc do
4646
%Ecto.Association.ManyToMany{
4747
join_through: join_through,
48-
join_keys: [{owner_key, _}, _],
4948
related: related
5049
} ->
5150
edges =

lib/ecto_sync/syncer.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ defmodule EctoSync.Syncer do
261261
defp maybe_update_has_through(value_or_values, new, config) do
262262
# For each preloaded assoc, check if there is another schema that has it as a HasThrough. If so, update that association based on its path for the assoc
263263
fun = fn value ->
264-
walk_preloaded_assocs(new, value_or_values, fn _, _, struct, acc ->
264+
walk_preloaded_assocs(new, value, fn _, _, struct, acc ->
265265
cond do
266266
is_list(struct) ->
267267
Enum.reduce(struct, acc, &do_sync(&2, &1, config))

0 commit comments

Comments
 (0)