chore: fix stream option taking (again)

This commit is contained in:
Zach Daniel 2024-01-29 15:56:48 -05:00
parent 248f99ebcf
commit f4339be426
2 changed files with 2 additions and 3 deletions

View file

@ -39,8 +39,7 @@ defmodule Ash.Actions.Update.Bulk do
case fully_atomic_changeset do case fully_atomic_changeset do
{:not_atomic, _} -> {:not_atomic, _} ->
read_opts = read_opts =
opts Keyword.take(opts, Ash.Api.stream_opt_keys())
|> Keyword.take(Ash.Api.stream_opts())
read_opts = read_opts =
if stream_batch_size = opts[:stream_batch_size] do if stream_batch_size = opts[:stream_batch_size] do

View file

@ -199,7 +199,7 @@ defmodule Ash.Api do
) )
@doc false @doc false
def stream_opts, do: @stream_opts def stream_opt_keys, do: Keyword.keys(@stream_opts)
@doc """ @doc """
Streams the results of a query. Streams the results of a query.