Skip to content

Commit

Permalink
chore: Properly pass options to ash 3.0 read (#809)
Browse files Browse the repository at this point in the history
  • Loading branch information
pshoukry authored Oct 21, 2024
1 parent 5b8c0e6 commit 67fb462
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/ash_authentication.ex
Original file line number Diff line number Diff line change
Expand Up @@ -213,8 +213,12 @@ defmodule AshAuthentication do
ash_authentication?: true
}
})
|> Query.for_read(action_name, %{subject: to_string(subject)})
|> Ash.read_one(Keyword.put(options, :not_found_error?, true))
|> Query.for_read(
action_name,
%{subject: to_string(subject)},
Keyword.put(options, :not_found_error?, true)
)
|> Ash.read_one()
|> case do
# This is here for backwards compatibility with the old api
# when this argument was not added
Expand Down

0 comments on commit 67fb462

Please sign in to comment.