** (Ash.Error.Framework.InvalidReturnType) Invalid return from generic action Elixir.MyApp.Accounts.User.register_user.
Expected :ok or {:error, error}, got:
%MyApp.Accounts.User{sessions: #Ash.NotLoaded<:relationship, field: :sessions>, __meta__: #Ecto.Schema.Metadata<:loaded, "users">, id: "01976743-40a1-719d-b070-519808c3e38e", inserted_at: ~U[2025-06-13 03:09:10.177172Z], updated_at: ~U[2025-06-13 03:09:10.177172Z], email: #Ash.CiString<"[email protected]">, name: "Test User", role: :user, status: :pending}
(ash 3.5.12) lib/ash/actions/action.ex:211: Ash.Actions.Action.raise_invalid_generic_action_return!/2
(ash 3.5.12) lib/ash/actions/action.ex:143: Ash.Actions.Action.run/3
(ash 3.5.12) lib/ash.ex:1449: Ash.run_action/2
iex:16: (file)
** (Ash.Error.Framework.InvalidReturnType) Invalid return from generic action Elixir.MyApp.Accounts.User.register_user.
Expected :ok or {:error, error}, got:
%MyApp.Accounts.User{sessions: #Ash.NotLoaded<:relationship, field: :sessions>, __meta__: #Ecto.Schema.Metadata<:loaded, "users">, id: "01976743-40a1-719d-b070-519808c3e38e", inserted_at: ~U[2025-06-13 03:09:10.177172Z], updated_at: ~U[2025-06-13 03:09:10.177172Z], email: #Ash.CiString<"[email protected]">, name: "Test User", role: :user, status: :pending}
(ash 3.5.12) lib/ash/actions/action.ex:211: Ash.Actions.Action.raise_invalid_generic_action_return!/2
(ash 3.5.12) lib/ash/actions/action.ex:143: Ash.Actions.Action.run/3
(ash 3.5.12) lib/ash.ex:1449: Ash.run_action/2
iex:16: (file)