mirror of
https://github.com/ash-project/ash.git
synced 2024-09-20 21:43:02 +12:00
improvement: Set api field for ActionInput when running action (#676)
Co-authored-by: Eduardo <sezdocs@dev-distrobox.fedora.local>
This commit is contained in:
parent
6785e30b68
commit
3b67313129
1 changed files with 2 additions and 0 deletions
|
@ -900,6 +900,8 @@ defmodule Ash.Api do
|
||||||
def run_action(api, input, opts \\ []) do
|
def run_action(api, input, opts \\ []) do
|
||||||
case Spark.OptionsHelpers.validate(opts, @run_action_opts) do
|
case Spark.OptionsHelpers.validate(opts, @run_action_opts) do
|
||||||
{:ok, opts} ->
|
{:ok, opts} ->
|
||||||
|
input = %{input | api: api}
|
||||||
|
|
||||||
Ash.Actions.Action.run(api, input, opts)
|
Ash.Actions.Action.run(api, input, opts)
|
||||||
|
|
||||||
{:error, error} ->
|
{:error, error} ->
|
||||||
|
|
Loading…
Reference in a new issue