mirror of
https://github.com/ash-project/ash.git
synced 2024-09-20 13:33:20 +12:00
fix: return proper result when input is struct
This commit is contained in:
parent
bead3f528e
commit
61dcd56d0e
1 changed files with 1 additions and 1 deletions
|
@ -924,7 +924,7 @@ defmodule Ash.Actions.ManagedRelationships do
|
||||||
nil ->
|
nil ->
|
||||||
created =
|
created =
|
||||||
if is_struct(input) do
|
if is_struct(input) do
|
||||||
{:ok, input, [], []}
|
{:ok, input, []}
|
||||||
else
|
else
|
||||||
relationship.destination
|
relationship.destination
|
||||||
|> Ash.Changeset.new()
|
|> Ash.Changeset.new()
|
||||||
|
|
Loading…
Reference in a new issue