mirror of
https://github.com/ash-project/ash.git
synced 2024-09-20 13:33:20 +12:00
fix: set upsert context from action on create changesets
This commit is contained in:
parent
80f696417d
commit
cb99faf918
1 changed files with 4 additions and 1 deletions
|
@ -508,7 +508,10 @@ defmodule Ash.Changeset do
|
||||||
|
|
||||||
changeset
|
changeset
|
||||||
|> set_context(%{
|
|> set_context(%{
|
||||||
private: %{upsert?: opts[:upsert?] || false, upsert_identity: opts[:upsert_identity]}
|
private: %{
|
||||||
|
upsert?: opts[:upsert?] || action.upsert? || false,
|
||||||
|
upsert_identity: opts[:upsert_identity] || action.upsert_identity
|
||||||
|
}
|
||||||
})
|
})
|
||||||
|> do_for_action(action, params, opts)
|
|> do_for_action(action, params, opts)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue