improvement: Set api field for ActionInput when running action (#676)

Co-authored-by: Eduardo <sezdocs@dev-distrobox.fedora.local>
This commit is contained in:
Eduardo B. A 2023-08-20 11:06:32 -03:00 committed by GitHub
parent 6785e30b68
commit 3b67313129
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -900,6 +900,8 @@ defmodule Ash.Api do
def run_action(api, input, opts \\ []) do
case Spark.OptionsHelpers.validate(opts, @run_action_opts) do
{:ok, opts} ->
input = %{input | api: api}
Ash.Actions.Action.run(api, input, opts)
{:error, error} ->