Skip to content

Commit

Permalink
fix: don't accidentally mix updates/params when building changes
Browse files Browse the repository at this point in the history
  • Loading branch information
zachdaniel committed Jul 23, 2024
1 parent b783a55 commit 2ccfdb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/atomics.ex
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ defmodule AshSql.Atomics do
updating_one_changes
|> Map.to_list()
|> Enum.reduce({[], [], 0}, fn {key, value}, {params, set, count} ->
{set ++ [{value, {0, key}} | params], [{key, {:^, [], [count]}}], count + 1}
{[{value, {0, key}} | params], [{key, {:^, [], [count]}} | set], count + 1}
end)

{params, set, _, query} =
Expand Down

0 comments on commit 2ccfdb9

Please sign in to comment.